| 1 |
# tclOO.decls -- |
| 2 |
# |
| 3 |
# This file contains the declarations for all supported public functions |
| 4 |
# that are exported by the TclOO package that is embedded within the Tcl |
| 5 |
# library via the stubs table. This file is used to generate the |
| 6 |
# tclOODecls.h, tclOOIntDecls.h and tclOOStubInit.c files. |
| 7 |
# |
| 8 |
# Copyright © 2008-2013 Donal K. Fellows. |
| 9 |
# |
| 10 |
# See the file "license.terms" for information on usage and redistribution of |
| 11 |
# this file, and for a DISCLAIMER OF ALL WARRANTIES. |
| 12 |
|
| 13 |
library tclOO |
| 14 |
|
| 15 |
###################################################################### |
| 16 |
# Public API, exposed for general users of TclOO. |
| 17 |
# |
| 18 |
|
| 19 |
interface tclOO |
| 20 |
hooks tclOOInt |
| 21 |
scspec TCLAPI |
| 22 |
|
| 23 |
declare 0 { |
| 24 |
Tcl_Object Tcl_CopyObjectInstance(Tcl_Interp *interp, |
| 25 |
Tcl_Object sourceObject, const char *targetName, |
| 26 |
const char *targetNamespaceName) |
| 27 |
} |
| 28 |
declare 1 { |
| 29 |
Tcl_Object Tcl_GetClassAsObject(Tcl_Class clazz) |
| 30 |
} |
| 31 |
declare 2 { |
| 32 |
Tcl_Class Tcl_GetObjectAsClass(Tcl_Object object) |
| 33 |
} |
| 34 |
declare 3 { |
| 35 |
Tcl_Command Tcl_GetObjectCommand(Tcl_Object object) |
| 36 |
} |
| 37 |
declare 4 { |
| 38 |
Tcl_Object Tcl_GetObjectFromObj(Tcl_Interp *interp, Tcl_Obj *objPtr) |
| 39 |
} |
| 40 |
declare 5 { |
| 41 |
Tcl_Namespace *Tcl_GetObjectNamespace(Tcl_Object object) |
| 42 |
} |
| 43 |
declare 6 { |
| 44 |
Tcl_Class Tcl_MethodDeclarerClass(Tcl_Method method) |
| 45 |
} |
| 46 |
declare 7 { |
| 47 |
Tcl_Object Tcl_MethodDeclarerObject(Tcl_Method method) |
| 48 |
} |
| 49 |
declare 8 { |
| 50 |
int Tcl_MethodIsPublic(Tcl_Method method) |
| 51 |
} |
| 52 |
declare 9 { |
| 53 |
int Tcl_MethodIsType(Tcl_Method method, const Tcl_MethodType *typePtr, |
| 54 |
void **clientDataPtr) |
| 55 |
} |
| 56 |
declare 10 { |
| 57 |
Tcl_Obj *Tcl_MethodName(Tcl_Method method) |
| 58 |
} |
| 59 |
declare 11 { |
| 60 |
Tcl_Method Tcl_NewInstanceMethod(Tcl_Interp *interp, Tcl_Object object, |
| 61 |
Tcl_Obj *nameObj, int isPublic, const Tcl_MethodType *typePtr, |
| 62 |
void *clientData) |
| 63 |
} |
| 64 |
declare 12 { |
| 65 |
Tcl_Method Tcl_NewMethod(Tcl_Interp *interp, Tcl_Class cls, |
| 66 |
Tcl_Obj *nameObj, int isPublic, const Tcl_MethodType *typePtr, |
| 67 |
void *clientData) |
| 68 |
} |
| 69 |
declare 13 { |
| 70 |
Tcl_Object Tcl_NewObjectInstance(Tcl_Interp *interp, Tcl_Class cls, |
| 71 |
const char *nameStr, const char *nsNameStr, int objc, |
| 72 |
Tcl_Obj *const *objv, int skip) |
| 73 |
} |
| 74 |
declare 14 { |
| 75 |
int Tcl_ObjectDeleted(Tcl_Object object) |
| 76 |
} |
| 77 |
declare 15 { |
| 78 |
int Tcl_ObjectContextIsFiltering(Tcl_ObjectContext context) |
| 79 |
} |
| 80 |
declare 16 { |
| 81 |
Tcl_Method Tcl_ObjectContextMethod(Tcl_ObjectContext context) |
| 82 |
} |
| 83 |
declare 17 { |
| 84 |
Tcl_Object Tcl_ObjectContextObject(Tcl_ObjectContext context) |
| 85 |
} |
| 86 |
declare 18 { |
| 87 |
int Tcl_ObjectContextSkippedArgs(Tcl_ObjectContext context) |
| 88 |
} |
| 89 |
declare 19 { |
| 90 |
void *Tcl_ClassGetMetadata(Tcl_Class clazz, |
| 91 |
const Tcl_ObjectMetadataType *typePtr) |
| 92 |
} |
| 93 |
declare 20 { |
| 94 |
void Tcl_ClassSetMetadata(Tcl_Class clazz, |
| 95 |
const Tcl_ObjectMetadataType *typePtr, void *metadata) |
| 96 |
} |
| 97 |
declare 21 { |
| 98 |
void *Tcl_ObjectGetMetadata(Tcl_Object object, |
| 99 |
const Tcl_ObjectMetadataType *typePtr) |
| 100 |
} |
| 101 |
declare 22 { |
| 102 |
void Tcl_ObjectSetMetadata(Tcl_Object object, |
| 103 |
const Tcl_ObjectMetadataType *typePtr, void *metadata) |
| 104 |
} |
| 105 |
declare 23 { |
| 106 |
int Tcl_ObjectContextInvokeNext(Tcl_Interp *interp, |
| 107 |
Tcl_ObjectContext context, int objc, Tcl_Obj *const *objv, |
| 108 |
int skip) |
| 109 |
} |
| 110 |
declare 24 { |
| 111 |
Tcl_ObjectMapMethodNameProc *Tcl_ObjectGetMethodNameMapper( |
| 112 |
Tcl_Object object) |
| 113 |
} |
| 114 |
declare 25 { |
| 115 |
void Tcl_ObjectSetMethodNameMapper(Tcl_Object object, |
| 116 |
Tcl_ObjectMapMethodNameProc *mapMethodNameProc) |
| 117 |
} |
| 118 |
declare 26 { |
| 119 |
void Tcl_ClassSetConstructor(Tcl_Interp *interp, Tcl_Class clazz, |
| 120 |
Tcl_Method method) |
| 121 |
} |
| 122 |
declare 27 { |
| 123 |
void Tcl_ClassSetDestructor(Tcl_Interp *interp, Tcl_Class clazz, |
| 124 |
Tcl_Method method) |
| 125 |
} |
| 126 |
declare 28 { |
| 127 |
Tcl_Obj *Tcl_GetObjectName(Tcl_Interp *interp, Tcl_Object object) |
| 128 |
} |
| 129 |
declare 34 { |
| 130 |
void TclOOUnusedStubEntry(void) |
| 131 |
} |
| 132 |
|
| 133 |
###################################################################### |
| 134 |
# Private API, exposed to support advanced OO systems that plug in on top of |
| 135 |
# TclOO; not intended for general use and does not have any commitment to |
| 136 |
# long-term support. |
| 137 |
# |
| 138 |
|
| 139 |
interface tclOOInt |
| 140 |
|
| 141 |
declare 0 { |
| 142 |
Tcl_Object TclOOGetDefineCmdContext(Tcl_Interp *interp) |
| 143 |
} |
| 144 |
declare 1 { |
| 145 |
Tcl_Method TclOOMakeProcInstanceMethod(Tcl_Interp *interp, Object *oPtr, |
| 146 |
int flags, Tcl_Obj *nameObj, Tcl_Obj *argsObj, Tcl_Obj *bodyObj, |
| 147 |
const Tcl_MethodType *typePtr, void *clientData, |
| 148 |
Proc **procPtrPtr) |
| 149 |
} |
| 150 |
declare 2 { |
| 151 |
Tcl_Method TclOOMakeProcMethod(Tcl_Interp *interp, Class *clsPtr, |
| 152 |
int flags, Tcl_Obj *nameObj, const char *namePtr, |
| 153 |
Tcl_Obj *argsObj, Tcl_Obj *bodyObj, const Tcl_MethodType *typePtr, |
| 154 |
void *clientData, Proc **procPtrPtr) |
| 155 |
} |
| 156 |
declare 3 { |
| 157 |
Method *TclOONewProcInstanceMethod(Tcl_Interp *interp, Object *oPtr, |
| 158 |
int flags, Tcl_Obj *nameObj, Tcl_Obj *argsObj, Tcl_Obj *bodyObj, |
| 159 |
ProcedureMethod **pmPtrPtr) |
| 160 |
} |
| 161 |
declare 4 { |
| 162 |
Method *TclOONewProcMethod(Tcl_Interp *interp, Class *clsPtr, |
| 163 |
int flags, Tcl_Obj *nameObj, Tcl_Obj *argsObj, Tcl_Obj *bodyObj, |
| 164 |
ProcedureMethod **pmPtrPtr) |
| 165 |
} |
| 166 |
declare 5 { |
| 167 |
int TclOOObjectCmdCore(Object *oPtr, Tcl_Interp *interp, int objc, |
| 168 |
Tcl_Obj *const *objv, int publicOnly, Class *startCls) |
| 169 |
} |
| 170 |
declare 6 { |
| 171 |
int TclOOIsReachable(Class *targetPtr, Class *startPtr) |
| 172 |
} |
| 173 |
declare 7 { |
| 174 |
Method *TclOONewForwardMethod(Tcl_Interp *interp, Class *clsPtr, |
| 175 |
int isPublic, Tcl_Obj *nameObj, Tcl_Obj *prefixObj) |
| 176 |
} |
| 177 |
declare 8 { |
| 178 |
Method *TclOONewForwardInstanceMethod(Tcl_Interp *interp, Object *oPtr, |
| 179 |
int isPublic, Tcl_Obj *nameObj, Tcl_Obj *prefixObj) |
| 180 |
} |
| 181 |
declare 9 { |
| 182 |
Tcl_Method TclOONewProcInstanceMethodEx(Tcl_Interp *interp, |
| 183 |
Tcl_Object oPtr, TclOO_PreCallProc *preCallPtr, |
| 184 |
TclOO_PostCallProc *postCallPtr, ProcErrorProc *errProc, |
| 185 |
void *clientData, Tcl_Obj *nameObj, Tcl_Obj *argsObj, |
| 186 |
Tcl_Obj *bodyObj, int flags, void **internalTokenPtr) |
| 187 |
} |
| 188 |
declare 10 { |
| 189 |
Tcl_Method TclOONewProcMethodEx(Tcl_Interp *interp, Tcl_Class clsPtr, |
| 190 |
TclOO_PreCallProc *preCallPtr, TclOO_PostCallProc *postCallPtr, |
| 191 |
ProcErrorProc *errProc, void *clientData, Tcl_Obj *nameObj, |
| 192 |
Tcl_Obj *argsObj, Tcl_Obj *bodyObj, int flags, |
| 193 |
void **internalTokenPtr) |
| 194 |
} |
| 195 |
declare 11 { |
| 196 |
int TclOOInvokeObject(Tcl_Interp *interp, Tcl_Object object, |
| 197 |
Tcl_Class startCls, int publicPrivate, int objc, |
| 198 |
Tcl_Obj *const *objv) |
| 199 |
} |
| 200 |
declare 12 { |
| 201 |
void TclOOObjectSetFilters(Object *oPtr, int numFilters, |
| 202 |
Tcl_Obj *const *filters) |
| 203 |
} |
| 204 |
declare 13 { |
| 205 |
void TclOOClassSetFilters(Tcl_Interp *interp, Class *classPtr, |
| 206 |
int numFilters, Tcl_Obj *const *filters) |
| 207 |
} |
| 208 |
declare 14 { |
| 209 |
void TclOOObjectSetMixins(Object *oPtr, int numMixins, |
| 210 |
Class *const *mixins) |
| 211 |
} |
| 212 |
declare 15 { |
| 213 |
void TclOOClassSetMixins(Tcl_Interp *interp, Class *classPtr, |
| 214 |
int numMixins, Class *const *mixins) |
| 215 |
} |
| 216 |
|
| 217 |
return |
| 218 |
|
| 219 |
# Local Variables: |
| 220 |
# mode: tcl |
| 221 |
# End: |