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>
21 #include "gtxobjdict.h" /*Interface for this module*/
22 #include <stdio.h> /*Standard I/O package*/
24 static char mn[] = "gator_objdict"; /*Module name*/
25 static int objdict_debug; /*Is debugging turned on?*/
27 /*------------------------------------------------------------------------
31 * Initialize the gator object dictionary package.
34 * int adebug: Is debugging turned on?
38 * Error value otherwise.
41 * *** MUST BE THE FIRST ROUTINE CALLED FROM
46 *------------------------------------------------------------------------*/
48 int gator_objdict_init(adebug)
51 { /*gator_objdict_init*/
53 static char rn[] = "gator_objdict_init"; /*Routine name*/
56 * Remember what our debugging setting is.
58 objdict_debug = adebug;
61 fprintf(stderr, "[%s:%s] Called\n", mn, rn);
64 * Finally, return the good news.
68 } /*gator_objdict_init*/
70 /*------------------------------------------------------------------------
74 * Add an entry to the gator object dictionary.
77 * struct onode *objtoadd: Ptr to object to add.
81 * Error value otherwise.
84 * Nothing interesting.
88 *------------------------------------------------------------------------*/
90 int gator_objdict_add(objtoadd)
91 struct onode *objtoadd;
93 { /*gator_objdict_add*/
95 static char rn[] = "gator_objdict_add"; /*Routine name*/
98 fprintf(stderr, "[%s:%s] Called\n", mn, rn);
101 * Finally, return the good news.
105 } /*gator_objdict_add*/
107 /*------------------------------------------------------------------------
108 * gator_objdict_delete
111 * Delete an entry from the gator object dictionary.
114 * struct onode *objtodelete: Ptr to object to delete.
118 * Error value otherwise.
121 * Nothing interesting.
125 *------------------------------------------------------------------------*/
127 int gator_objdict_delete(objtodelete)
128 struct onode *objtodelete;
130 { /*gator_objdict_delete*/
132 static char rn[] = "gator_objdict_delete"; /*Routine name*/
135 fprintf(stderr, "[%s:%s] Called\n", mn, rn);
138 * Finally, return the good news.
142 } /*gator_objdict_delete*/
144 /*------------------------------------------------------------------------
145 * gator_objdict_lookup
148 * Look up a gator object by name.
151 * char *nametofind: String name of desired onode.
154 * Ptr to desired onode if successful,
155 * Null pointer otherwise.
158 * Nothing interesting.
162 *------------------------------------------------------------------------*/
164 struct onode *gator_objdict_lookup(nametofind)
167 { /*gator_objdict_lookup*/
169 static char rn[] = "gator_objdict_lookup"; /*Routine name*/
172 fprintf(stderr, "[%s:%s] Called\n", mn, rn);
175 * Finally, return the good news.
179 } /*gator_objdict_lookup*/