2 * Copyright 2000, International Business Machines Corporation and others.
5 * This software has been released under the terms of the IBM Public
6 * License. For details, see the LICENSE file in the top-level source
7 * directory or online at http://www.openafs.org/dl/license10.html
12 * Implementation of the gator object dictionary.
14 *------------------------------------------------------------------------*/
16 #include "gtxobjdict.h" /*Interface for this module*/
17 #include <stdio.h> /*Standard I/O package*/
19 static char mn[] = "gator_objdict"; /*Module name*/
20 static int objdict_debug; /*Is debugging turned on?*/
22 /*------------------------------------------------------------------------
26 * Initialize the gator object dictionary package.
29 * int adebug: Is debugging turned on?
33 * Error value otherwise.
36 * *** MUST BE THE FIRST ROUTINE CALLED FROM
41 *------------------------------------------------------------------------*/
43 int gator_objdict_init(adebug)
46 { /*gator_objdict_init*/
48 static char rn[] = "gator_objdict_init"; /*Routine name*/
51 * Remember what our debugging setting is.
53 objdict_debug = adebug;
56 fprintf(stderr, "[%s:%s] Called\n", mn, rn);
59 * Finally, return the good news.
63 } /*gator_objdict_init*/
65 /*------------------------------------------------------------------------
69 * Add an entry to the gator object dictionary.
72 * struct onode *objtoadd: Ptr to object to add.
76 * Error value otherwise.
79 * Nothing interesting.
83 *------------------------------------------------------------------------*/
85 int gator_objdict_add(objtoadd)
86 struct onode *objtoadd;
88 { /*gator_objdict_add*/
90 static char rn[] = "gator_objdict_add"; /*Routine name*/
93 fprintf(stderr, "[%s:%s] Called\n", mn, rn);
96 * Finally, return the good news.
100 } /*gator_objdict_add*/
102 /*------------------------------------------------------------------------
103 * gator_objdict_delete
106 * Delete an entry from the gator object dictionary.
109 * struct onode *objtodelete: Ptr to object to delete.
113 * Error value otherwise.
116 * Nothing interesting.
120 *------------------------------------------------------------------------*/
122 int gator_objdict_delete(objtodelete)
123 struct onode *objtodelete;
125 { /*gator_objdict_delete*/
127 static char rn[] = "gator_objdict_delete"; /*Routine name*/
130 fprintf(stderr, "[%s:%s] Called\n", mn, rn);
133 * Finally, return the good news.
137 } /*gator_objdict_delete*/
139 /*------------------------------------------------------------------------
140 * gator_objdict_lookup
143 * Look up a gator object by name.
146 * char *nametofind: String name of desired onode.
149 * Ptr to desired onode if successful,
150 * Null pointer otherwise.
153 * Nothing interesting.
157 *------------------------------------------------------------------------*/
159 struct onode *gator_objdict_lookup(nametofind)
162 { /*gator_objdict_lookup*/
164 static char rn[] = "gator_objdict_lookup"; /*Routine name*/
167 fprintf(stderr, "[%s:%s] Called\n", mn, rn);
170 * Finally, return the good news.
172 return((struct onode *)0);
174 } /*gator_objdict_lookup*/