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

Lines Size Modified Created Owner MIME Types
90 4,224 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_COOKIE_H
0018
#define _WT_COOKIE_H
0019
0020
#include <tcl.h>
0021
#include "WtCollection.h"
0022
0023
Tcl_Obj *WtNewCookieObj();
0024
Tcl_Obj *WtCookieGetName(Tcl_Obj *cookie, Tcl_Interp *interp);
0025
int WtCookieSetName(Tcl_Obj *cookie, Tcl_Obj *name, Tcl_Interp *interp);
0026
int WtCookieGetValue(Tcl_Obj *cookie, Tcl_Obj **value, Tcl_Interp *interp);
0027
int WtCookieSetValue(Tcl_Obj *cookie, Tcl_Obj *value, Tcl_Interp *interp);
0028
int WtCookieGetAllValues(Tcl_Obj *cookie, Tcl_Obj **values, Tcl_Interp *interp);
0029
int WtCookieSetAllValues(Tcl_Obj *cookie, Tcl_Obj *values, Tcl_Interp *interp);
0030
Tcl_Obj *WtCookieGetExpires(Tcl_Obj *cookie, Tcl_Interp *interp);
0031
int WtCookieSetExpires(Tcl_Obj *cookie, Tcl_Obj *expires, Tcl_Interp *interp);
0032
int WtCookieMarkExpired(Tcl_Obj *cookie, Tcl_Interp *interp);
0033
Tcl_Obj *WtCookieGetDomain(Tcl_Obj *cookie, Tcl_Interp *interp);
0034
int WtCookieSetDomain(Tcl_Obj *cookie, Tcl_Obj *domain, Tcl_Interp *interp);
0035
Tcl_Obj *WtCookieGetPath(Tcl_Obj *cookie, Tcl_Interp *interp);
0036
int WtCookieSetPath(Tcl_Obj *cookie, Tcl_Obj *path, Tcl_Interp *interp);
0037
Tcl_Obj *WtCookieGetSecure(Tcl_Obj *cookie, Tcl_Interp *interp);
0038
int WtCookieSetSecure(Tcl_Obj *cookie, Tcl_Obj *secure, Tcl_Interp *interp);
0039
int WtCookieCmd(ClientData clientData, Tcl_Interp *interp, int objc,
0040
  Tcl_Obj *const objv[]);
0041
int WtCookieCreateCmd(ClientData clientData, Tcl_Interp *interp, int objc,
0042
  Tcl_Obj *const objv[]);
0043
int WtCookieNameCmd(ClientData clientData, Tcl_Interp *interp, int objc,
0044
  Tcl_Obj *const objv[]);
0045
int WtCookieValueCmd(ClientData clientData, Tcl_Interp *interp, int objc,
0046
  Tcl_Obj *const objv[]);
0047
int WtCookieAllValuesCmd(ClientData clientData, Tcl_Interp *interp, int objc,
0048
  Tcl_Obj *const objv[]);
0049
int WtCookieExpiresCmd(ClientData clientData, Tcl_Interp *interp, int objc,
0050
  Tcl_Obj *const objv[]);
0051
int WtCookieMarkExpiredCmd(ClientData clientData, Tcl_Interp *interp, int objc,
0052
  Tcl_Obj *const objv[]);
0053
int WtCookieDomainCmd(ClientData clientData, Tcl_Interp *interp, int objc,
0054
  Tcl_Obj *const objv[]);
0055
int WtCookiePathCmd(ClientData clientData, Tcl_Interp *interp, int objc,
0056
  Tcl_Obj *const objv[]);
0057
int WtCookieSecureCmd(ClientData clientData, Tcl_Interp *interp, int objc,
0058
  Tcl_Obj *const objv[]);
0059
void WtCookieUsage(Tcl_Interp *interp, Tcl_Obj *cmd);
0060
Tcl_Obj *WtCookieCmdGetVal(Tcl_Obj *val, Tcl_Interp *interp);
0061
int WtCookieCmdGetVar(Tcl_Obj *var, Tcl_Obj **val,
0062
  Tcl_Interp *interp);
0063
int WtCookieCmdOwnVar(Tcl_Obj *var, Tcl_Obj **val,
0064
  int *created, Tcl_Interp *interp);
0065
Tcl_Obj *WtCookieCmdSetVar(Tcl_Obj *var, Tcl_Obj *val, Tcl_Interp *interp);
0066
Tcl_Obj *WtNewCookieClnObj();
0067
void WtCookieClnFree(Tcl_Obj *cln);
0068
void WtCookieClnDup(Tcl_Obj *src, Tcl_Obj *dst);
0069
void WtCookieClnUpdateString(Tcl_Obj *cln);
0070
int WtCookieClnSetFromAny(Tcl_Interp *interp, Tcl_Obj *obj);
0071
int WtCookieClnCompare(Tcl_Obj *item, Tcl_Obj *key, int *result,
0072
  Tcl_Interp *interp);
0073
int WtCookieClnGetKey(Tcl_Obj *item, Tcl_Obj **key,
0074
  Tcl_Interp *interp);
0075
int WtCookieClnGetValue(Tcl_Obj *item, Tcl_Obj **value,
0076
  Tcl_Interp *interp);
0077
int WtResponseCookiesCmd(ClientData clientData, Tcl_Interp *interp,
0078
  int objc, Tcl_Obj *const objv[]);
0079
int WtCookieClnCmd(ClientData clientData, Tcl_Interp *interp,
0080
  int objc, Tcl_Obj *const objv[]);
0081
void WtResponseCookiesUsage(Tcl_Interp *interp, Tcl_Obj *cmd);
0082
void WtInitCookieCommands(Tcl_Interp *interp);
0083
int WtConvertToCookieCln(Tcl_Obj *obj, Tcl_Interp *interp);
0084
int WtOwnCookieCln(Tcl_Obj **objPtr, Tcl_Interp *interp);
0085
0086
extern struct Tcl_ObjType WtCookieClnType;
0087
extern WtClnItemType WtCookieClnItemType;
0088
extern const char *wtCookieEpoch;
0089
0090
#endif /* !_WT_COOKIE_H */