Changes between Version 1 and Version 2 of Registry2Notes
- Timestamp:
- Mar 23, 2009, 9:44:11 PM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Registry2Notes
v1 v2 2 2 Note that some source files have doxygen-style comments, so some docs can be created by running doxygen on them. 3 3 4 Code: [browser:trunk/base/src/registry2.0] 5 4 6 == Tcl commands created == #tcl_commands 5 7 - `registry::entry cmd ?arg ...?` 6 - Run a command against registry entries 7 - `${entry} cmd ?arg ...?` 8 - Commands specific to just one registry entry (usually gained from `registry::entry`) 9 - `item cmd ?arg ...?` 10 - `${item} cmd ?arg ...?` 11 - `registry::open` 12 - `registry::close` 13 - `registry::read` 14 - `registry::write` 15 16 == C code files == #c_code 17 === entry.[ch] === #entry_c 18 - void delete_entry(ClientData clientData) 19 - to be used as the 'Tcl_CmdDeleteProc' for an entry object 20 - int entry_cmd(ClientData clientData UNUSED, Tcl_Interp* interp, int objc, Tcl_Obj* CONST objv[]) 21 - implements "registry::entry cmd ?arg ...?" 22 - commands are: 8 - Run a command against registry entries (implemented in entry.c) 9 - Commands are: 23 10 - create - entry_create() 24 11 - delete - entry_delete() … … 31 18 - owner - entry_owner() 32 19 33 === entryobj.[ch] === #entryobj_c 34 - int entry_obj_cmd(ClientData clientData, Tcl_Interp* interp, int objc, Tcl_Obj* CONST objv[]) 35 - implements "${entry} cmd ?arg ...?" (procs for entry objects from "registry::entry") 36 - commands are: 20 - `${entry} cmd ?arg ...?` 21 - Commands specific to just one registry entry (usually gained from `registry::entry`) (implemented in entryobj.c) 22 - Commands are: 37 23 - name - entry_obj_prop() 38 24 - portfile - entry_obj_prop() … … 57 43 - depends - entry_obj_depends() 58 44 45 - `item cmd ?arg ...?` 46 - Implemented in item.c 47 - Commands are: 48 - create - item_create() 49 - search - item_search() 50 - exists - item_exists() 51 - others are commented-out (retain, release, name, url, path, worker, options, and variants) 52 53 - `${item} cmd ?arg ...?` 54 - Implemented in itemobj.c 55 - Commands are: 56 - retain - item_obj_retain() 57 - release - item_obj_release() 58 - key - item_obj_key() 59 60 - Top-level registry commands (implemented in registry.c): 61 - registry::open - registry_open() 62 - registry::close - registry_close() 63 - registry::read - registry_read() 64 - registry::write - registry_write() 65 - registry::entry - entry_cmd() 66 67 == C code files == #c_code 68 === entry.[ch] === #entry_c 69 - void delete_entry(ClientData clientData) 70 - to be used as the 'Tcl_CmdDeleteProc' for an entry object 71 - int entry_cmd(ClientData clientData UNUSED, Tcl_Interp* interp, int objc, Tcl_Obj* CONST objv[]) 72 - implements "registry::entry cmd ?arg ...?" 73 74 === entryobj.[ch] === #entryobj_c 75 - int entry_obj_cmd(ClientData clientData, Tcl_Interp* interp, int objc, Tcl_Obj* CONST objv[]) 76 - implements "${entry} cmd ?arg ...?" (procs for entry objects from "registry::entry") 77 59 78 === graph.[ch] === #graph_c 60 79 === graphobj.[ch] === #graphobj_c … … 64 83 - int item_cmd(ClientData clientData UNUSED, Tcl_Interp* interp, int objc, Tcl_Obj* CONST objv[]) 65 84 - implements "item cmd ?arg ...?" 66 - commands are:67 - create - item_create()68 - search - item_search()69 - exists - item_exists()70 - others are commented-out (retain, release, name, url, path, worker, options, and variants)71 85 72 86 === itemobj.[ch] === #itemobj_c 73 87 - int item_obj_cmd(ClientData clientData, Tcl_Interp* interp, int objc, Tcl_Obj* CONST objv[]) 74 88 - implements "${item} cmd ?arg ...?" (procs for item objects from "item" 75 - commands are:76 - retain - item_obj_retain()77 - release - item_obj_release()78 - key - item_obj_key()79 89 80 90 === registry.[ch] === #registry_c … … 84 94 - Sets a Tcl object result based on errPtr 85 95 - int Registry_Init(Tcl_Interp* interp) 86 - The Tcl entry point for registry2.0; creates several commands:87 - registry::open - registry_open()88 - registry::close - registry_close()89 - registry::read - registry_read()90 - registry::write - registry_write()91 - registry::entry - entry_cmd()92 96 93 97 === util.[ch] === #util_c