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 / WtMtTable.h

Lines Size Modified Created Owner MIME Types
50 1,779 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_MT_TABLE_H
0018
#define _WT_MT_TABLE_H
0019
0020
#include <tcl.h>
0021
0022
typedef struct WtMtTableT {
0023
  Tcl_Obj *tbl;
0024
  Tcl_Mutex lock;
0025
} WtMtTable;
0026
0027
int WtMtTableSize(Tcl_Obj *mtTbl);
0028
int WtMtTableHas(Tcl_Obj *mtTbl, Tcl_Obj *key);
0029
Tcl_Obj *WtMtTableGet(Tcl_Obj *mtTbl, Tcl_Obj *key);
0030
void WtMtTableSet(Tcl_Obj *mtTbl, Tcl_Obj *key, Tcl_Obj *val);
0031
void WtMtTableRemove(Tcl_Obj *mtTbl, Tcl_Obj *key);
0032
int WtMtTableRemoveList(Tcl_Obj *mtTbl, Tcl_Obj *list,
0033
    Tcl_Interp *interp);
0034
int WtMtTableKeys(Tcl_Obj *mtTbl, Tcl_Obj **keys, Tcl_Interp *interp);
0035
int WtMtTableValues(Tcl_Obj *mtTbl, Tcl_Obj **vals, Tcl_Interp *interp);
0036
int WtMtUpdateTable(Tcl_Obj *dest, Tcl_Obj *src);
0037
void WtMtTableClear(Tcl_Obj *mtTbl);
0038
void WtMtTableLock(Tcl_Obj *mtTbl);
0039
void WtMtTableUnlock(Tcl_Obj *mtTbl);
0040
WtMtTable *WtMtTableRep(Tcl_Obj *mtTbl);
0041
Tcl_Obj *WtMtTableStorage(Tcl_Obj *mtTbl);
0042
Tcl_Obj *WtNewMtTableObj();
0043
void WtFreeMtTable(Tcl_Obj *mtTbl);
0044
void WtDupMtTable(Tcl_Obj *src, Tcl_Obj *dest);
0045
void WtUpdateMtTableString(Tcl_Obj *tbl);
0046
int WtSetMtTableFromAny(Tcl_Interp *interp, Tcl_Obj *obj);
0047
0048
extern struct Tcl_ObjType WtMtTableType;
0049
0050
#endif /* !_WT_MT_TABLE_H */