View Source

[modwtcl]
apreq.h
dist/
libapreq1/
mod_wtcl.c
mod_wtcl.h
setupExclude.txt
util/
win.def
win.mak
wt1.1/
WtAppTable.c
WtAppTable.h
WtBasicCmds.c
WtBasicCmds.h
WtClientRequest.c
WtClientRequest.h
WtCollection.c
WtCollection.h
WtCollectionCmds.c
WtCollectionCmds.h
WtContext.c
WtContext.h
WtContextEvents.c
WtContextEvents.h
WtCookie.c
WtCookie.h
WtDbSession.c
WtDbSession.h
WtExecute.c
WtExecute.h
WtHtmlEntities.c
WtHtmlEntities.h
WtInitCmds.c
WtInitCmds.h
WtMtTable.c
WtMtTable.h
WtMultiTable.c
WtMultiTable.h
WtOS.h
WtProcSession.c
WtProcSession.h
WtResponse.c
WtResponse.h
WtServerCmds.c
WtServerCmds.h
WtSession.c
WtSession.h
WtSettings.c
WtSettings.h
WtTable.c
WtTable.h
WtTableCmds.c
WtTableCmds.h
WtTableUtil.c
WtTableUtil.h
WtUpload.c
WtUpload.h
WtUtil.c
WtUtil.h
WtWebErrors.c
WtWebErrors.h
WtWindows.h
File: / archive / modwtcl / WtProcSession.h

Lines Size Modified Created Owner MIME Types
116 5,565 2010/05/08 18:46:41 2011/06/13 15:35:15 BUILTIN\Administrators text/x-chdr

0001
/*
0002
 * Copyright 2001 Alexander Boverman and the original authors.
0003
 * 
0004
 * Licensed under the Apache License, Version 2.0 (the "License");
0005
 * you may not use this file except in compliance with the License.
0006
 * You may obtain a copy of the License at
0007
 * 
0008
 *      http://www.apache.org/licenses/LICENSE-2.0
0009
 * 
0010
 * Unless required by applicable law or agreed to in writing, software
0011
 * distributed under the License is distributed on an "AS IS" BASIS,
0012
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
0013
 * See the License for the specific language governing permissions and
0014
 * limitations under the License.
0015
 */
0016
0017
#ifndef _WT_PROC_SESSION_H
0018
#define _WT_PROC_SESSION_H
0019
0020
#include <tcl.h>
0021
#include "WtMtTable.h"
0022
#include "WtSession.h"
0023
0024
typedef struct WtProcSessionT {
0025
  int initDone;
0026
  Tcl_Obj *id;
0027
  Tcl_Obj *psTable;
0028
  int isNew;
0029
  int isModified;
0030
} WtProcSession;
0031
0032
typedef struct WtPSTableT {
0033
  Tcl_Obj *sharedTable;
0034
  time_t accessTime;
0035
} WtPSTable;
0036
0037
int WtOpenProcSession(WtProcSession *sh, Tcl_Obj *id, Tcl_Interp *interp);
0038
int WtCloseProcSession(WtProcSession *sh, Tcl_Interp *interp);
0039
Tcl_Obj *WtGetProcSessionTable(Tcl_Obj *id);
0040
int WtInitProcSession(WtProcSession *sh, Tcl_Interp *interp);
0041
int WtOpenProcSessionTable(WtProcSession *sh, Tcl_Obj *id,
0042
  Tcl_Interp *interp);
0043
int WtCloseProcSessionTable(WtProcSession *sh, Tcl_Interp *interp);
0044
Tcl_Obj *WtGetProcSessionTable(Tcl_Obj *id);
0045
WtSessionStatus WtGetPSTableStatus(Tcl_Obj *stObj, Tcl_Interp *interp);
0046
int WtDeleteProcSession(WtProcSession *sh, Tcl_Obj *id, Tcl_Interp *interp);
0047
int WtSweepProcSessions(WtProcSession *sh, Tcl_Interp *interp);
0048
int WtProcSessionFinalizeRequest(WtProcSession *sh, Tcl_Interp *interp);
0049
int WtProcSessionCmd(ClientData clientData, Tcl_Interp *interp,
0050
  int objc, Tcl_Obj *const objv[]);
0051
int WtProcSessionCmdHelper(ClientData clientData, Tcl_Interp *interp,
0052
  WtProcSession *sh, int objc, Tcl_Obj *const objv[]);
0053
void WtProcSessionCmdUsage(Tcl_Interp *interp, Tcl_Obj *cmd);
0054
int WtProcSessionIdCmd(ClientData clientData, Tcl_Interp *interp,
0055
  WtProcSession *sh, int objc, Tcl_Obj *const objv[]);
0056
int WtProcSessionCountCmd(ClientData clientData, Tcl_Interp *interp,
0057
  WtProcSession *sh, int objc, Tcl_Obj *const objv[]);
0058
int WtProcSessionHasCmd(ClientData clientData, Tcl_Interp *interp,
0059
  WtProcSession *sh, int objc, Tcl_Obj *const objv[]);
0060
int WtProcSessionGetCmd(ClientData clientData, Tcl_Interp *interp,
0061
  WtProcSession *sh, int objc, Tcl_Obj *const objv[]);
0062
int WtProcSessionSetCmd(ClientData clientData, Tcl_Interp *interp,
0063
  WtProcSession *sh, int objc, Tcl_Obj *const objv[]);
0064
int WtProcSessionSetDefaultCmd(ClientData clientData, Tcl_Interp *interp,
0065
  WtProcSession *sh, int objc, Tcl_Obj *const objv[]);
0066
int WtProcSessionKeysCmd(ClientData clientData, Tcl_Interp *interp,
0067
  WtProcSession *sh, int objc, Tcl_Obj *const objv[]);
0068
int WtProcSessionValuesCmd(ClientData clientData, Tcl_Interp *interp,
0069
  WtProcSession *sh, int objc, Tcl_Obj *const objv[]);
0070
int WtProcSessionRemoveCmd(ClientData clientData, Tcl_Interp *interp,
0071
  WtProcSession *sh, int objc, Tcl_Obj *const objv[]);
0072
int WtProcSessionRemoveListCmd(ClientData clientData, Tcl_Interp *interp,
0073
  WtProcSession *sh, int objc, Tcl_Obj *const objv[]);
0074
int WtProcSessionArrayCmd(ClientData clientData, Tcl_Interp *interp,
0075
  WtProcSession *sh, int objc, Tcl_Obj *const objv[]);
0076
int WtProcSessionItemsCmd(ClientData clientData, Tcl_Interp *interp,
0077
  WtProcSession *sh, int objc, Tcl_Obj *const objv[]);
0078
int WtProcSessionTouchCmd(ClientData clientData, Tcl_Interp *interp,
0079
  WtProcSession *sh, int objc, Tcl_Obj *const objv[]);
0080
int WtProcSessionClearCmd(ClientData clientData, Tcl_Interp *interp,
0081
  WtProcSession *sh, int objc, Tcl_Obj *const objv[]);
0082
int WtProcSessionIsAccessedCmd(ClientData clientData, Tcl_Interp *interp,
0083
  WtProcSession *sh, int objc, Tcl_Obj *const objv[]);
0084
int WtProcSessionIsModifiedCmd(ClientData clientData, Tcl_Interp *interp,
0085
  WtProcSession *sh, int objc, Tcl_Obj *const objv[]);
0086
int WtProcSessionStatusCmd(ClientData clientData, Tcl_Interp *interp,
0087
  WtProcSession *sh, int objc, Tcl_Obj *const objv[]);
0088
int WtProcSessionPropertiesCmd(ClientData clientData, Tcl_Interp *interp,
0089
  WtProcSession *sh, int objc, Tcl_Obj *const objv[]);
0090
int WtProcSessionClientPropertiesCmd(ClientData clientData,
0091
  Tcl_Interp *interp, WtProcSession *sh, int objc, Tcl_Obj *const objv[]);
0092
int WtProcSessionDeleteCmd(ClientData clientData, Tcl_Interp *interp,
0093
  WtProcSession *sh, int objc, Tcl_Obj *const objv[]);
0094
int WtProcSessionSweepCmd(ClientData clientData, Tcl_Interp *interp,
0095
  WtProcSession *sh, int objc, Tcl_Obj *const objv[]);
0096
int WtProcSessionUnloadCmd(ClientData clientData, Tcl_Interp *interp,
0097
  WtProcSession *sh, int objc, Tcl_Obj *const objv[]);
0098
int WtProcSessionLoadModuleCmd(ClientData clientData, Tcl_Interp *interp,
0099
  WtProcSession *sh, int objc, Tcl_Obj *const objv[]);
0100
int WtProcSessionUnloadModuleCmd(ClientData clientData, Tcl_Interp *interp,
0101
  WtProcSession *sh, int objc, Tcl_Obj *const objv[]);
0102
int WtProcSessionFinalizeCmd(ClientData clientData, Tcl_Interp *interp,
0103
  WtProcSession *sh, int objc, Tcl_Obj *const objv[]);
0104
Tcl_Obj *WtGetPSStorage(WtProcSession *sh, Tcl_Interp *interp);
0105
void WtInitProcSessionCommands(Tcl_Interp *interp);
0106
Tcl_Obj *WtNewProcSessionObj();
0107
WtProcSession *WtProcSessionRep(Tcl_Obj *obj);
0108
Tcl_Obj *WtNewPSTableObj();
0109
WtPSTable *WtPSTableRep(Tcl_Obj *obj);
0110
0111
extern Tcl_ObjType WtProcSessionType;
0112
extern Tcl_ObjType WtPSTableType;
0113
extern Tcl_HashTable wtPSTables;
0114
extern Tcl_Mutex wtPSTablesLock;
0115
0116
#endif /* !_WT_PROC_SESSION_H */