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 <afsconfig.h>
17 #include <afs/param.h>
20 #include "gtxobjdict.h" /*Interface for this module */
21 #include <stdio.h> /*Standard I/O package */
23 static char mn
[] = "gator_objdict"; /*Module name */
24 static int objdict_debug
; /*Is debugging turned on? */
26 /*------------------------------------------------------------------------
30 * Initialize the gator object dictionary package.
33 * int adebug: Is debugging turned on?
37 * Error value otherwise.
40 * *** MUST BE THE FIRST ROUTINE CALLED FROM
45 *------------------------------------------------------------------------*/
48 gator_objdict_init(int adebug
)
49 { /*gator_objdict_init */
51 static char rn
[] = "gator_objdict_init"; /*Routine name */
54 * Remember what our debugging setting is.
56 objdict_debug
= adebug
;
59 fprintf(stderr
, "[%s:%s] Called\n", mn
, rn
);
62 * Finally, return the good news.
66 } /*gator_objdict_init */
68 /*------------------------------------------------------------------------
72 * Add an entry to the gator object dictionary.
75 * struct onode *objtoadd: Ptr to object to add.
79 * Error value otherwise.
82 * Nothing interesting.
86 *------------------------------------------------------------------------*/
89 gator_objdict_add(struct onode
*objtoadd
)
90 { /*gator_objdict_add */
92 static char rn
[] = "gator_objdict_add"; /*Routine name */
95 fprintf(stderr
, "[%s:%s] Called\n", mn
, rn
);
98 * Finally, return the good news.
102 } /*gator_objdict_add */
104 /*------------------------------------------------------------------------
105 * gator_objdict_delete
108 * Delete an entry from the gator object dictionary.
111 * struct onode *objtodelete: Ptr to object to delete.
115 * Error value otherwise.
118 * Nothing interesting.
122 *------------------------------------------------------------------------*/
125 gator_objdict_delete(struct onode
*objtodelete
)
126 { /*gator_objdict_delete */
128 static char rn
[] = "gator_objdict_delete"; /*Routine name */
131 fprintf(stderr
, "[%s:%s] Called\n", mn
, rn
);
134 * Finally, return the good news.
138 } /*gator_objdict_delete */
140 /*------------------------------------------------------------------------
141 * gator_objdict_lookup
144 * Look up a gator object by name.
147 * char *nametofind: String name of desired onode.
150 * Ptr to desired onode if successful,
151 * Null pointer otherwise.
154 * Nothing interesting.
158 *------------------------------------------------------------------------*/
161 gator_objdict_lookup(char *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.
174 } /*gator_objdict_lookup */