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

Lines Size Modified Created Owner MIME Types
81 2,588 2010/05/08 18:46:41 2011/06/13 15:35:16 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_TABLE_CMDS_H
0018
#define _WT_TABLE_CMDS_H
0019
0020
#include <tcl.h>
0021
0022
typedef enum {
0023
  WT_TBL_CMD_DONE,
0024
  WT_TBL_CMD_MISSING,
0025
  WT_TBL_CMD_NOT_FOUND
0026
} WtTableCmdStatus;
0027
0028
typedef struct WtTableCmdDataT {
0029
  Tcl_Obj **tablePtr;
0030
  Tcl_ObjType *type;
0031
} WtTableCmdData;
0032
0033
Tcl_Command WtCreateTableCmd(const char *cmdName,
0034
  Tcl_Obj **tblPtr, Tcl_ObjType *type, Tcl_Interp *interp);
0035
0036
void WtDeleteTableCmdProc(ClientData clientData);
0037
0038
int WtNamedTableCmd(ClientData clientData, Tcl_Interp *interp,
0039
  int objc, Tcl_Obj *const objv[]);
0040
0041
Tcl_Obj *WtTableCmdGetTable(Tcl_Interp *interp, Tcl_Obj *obj, int *created, Tcl_ObjType *type);
0042
0043
WtTableCmdStatus WtTableCmdHelper(ClientData clientData, Tcl_Interp *interp,
0044
  int objc, Tcl_Obj *const objv[], int *tclResult,
0045
  Tcl_ObjType *type, int readOnly, int appendUsage);
0046
0047
void WtTableCmdUsageError(Tcl_Interp *interp, Tcl_Obj *cmd, int readOnly);
0048
0049
void WtTableCmdAppendUsage(Tcl_Interp *interp, Tcl_Obj *cmd, int readOnly);
0050
0051
int WtTableCmd(ClientData clientData, Tcl_Interp *interp,
0052
  int objc, Tcl_Obj *const objv[]);
0053
0054
int WtCaselessTableCmd(ClientData clientData, Tcl_Interp *interp,
0055
  int objc, Tcl_Obj *const objv[]);
0056
0057
int WtTblCmdGetVar(Tcl_Obj *var, Tcl_Obj **val,
0058
  Tcl_ObjType *type, Tcl_Interp *interp);
0059
0060
int WtTblCmdOwnVar(Tcl_Obj *var, Tcl_Obj **val, Tcl_ObjType *type,
0061
  int *created, Tcl_Interp *interp);
0062
0063
Tcl_Obj *WtTblCmdSetVar(Tcl_Obj *var, Tcl_Obj *val,
0064
  Tcl_Interp *interp);
0065
0066
Tcl_Obj *WtTblCmdGetVal(Tcl_Obj *val, Tcl_ObjType *type,
0067
  Tcl_Interp *interp);
0068
0069
WtTableCmdStatus WtTableMethodHelper(ClientData clientData,
0070
  Tcl_Interp *interp, int objc, Tcl_Obj *const objv[], int *tclResult,
0071
  Tcl_Obj **tablePtr, Tcl_ObjType *type, int readOnly, int appendUsage);
0072
0073
void WtTableMethodUsageError(Tcl_Interp *interp, Tcl_Obj *cmd,
0074
  int readOnly);
0075
0076
void WtTableMethodAppendUsage(Tcl_Interp *interp, Tcl_Obj *cmd,
0077
  int readOnly);
0078
0079
void WtInitTableCommands(Tcl_Interp *interp);
0080
0081
#endif /* !_WT_TABLE_CMDS_H */