Update NEWS for 1.6.22
[pkg-k5-afs_openafs.git] / src / gtx / objdict.c
blobc2ded9c427faee1c9188c466f29ed5161b5c76ee
1 /*
2 * Copyright 2000, International Business Machines Corporation and others.
3 * All Rights Reserved.
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
8 */
11 * Description:
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 /*------------------------------------------------------------------------
27 * gator_objdict_init
29 * Description:
30 * Initialize the gator object dictionary package.
32 * Arguments:
33 * int adebug: Is debugging turned on?
35 * Returns:
36 * 0 on success,
37 * Error value otherwise.
39 * Environment:
40 * *** MUST BE THE FIRST ROUTINE CALLED FROM
41 * THIS PACKAGE ***
43 * Side Effects:
44 * As advertised.
45 *------------------------------------------------------------------------*/
47 int
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;
58 if (objdict_debug)
59 fprintf(stderr, "[%s:%s] Called\n", mn, rn);
62 * Finally, return the good news.
64 return (0);
66 } /*gator_objdict_init */
68 /*------------------------------------------------------------------------
69 * gator_objdict_add
71 * Description:
72 * Add an entry to the gator object dictionary.
74 * Arguments:
75 * struct onode *objtoadd: Ptr to object to add.
77 * Returns:
78 * 0 on success,
79 * Error value otherwise.
81 * Environment:
82 * Nothing interesting.
84 * Side Effects:
85 * As advertised.
86 *------------------------------------------------------------------------*/
88 int
89 gator_objdict_add(struct onode *objtoadd)
90 { /*gator_objdict_add */
92 static char rn[] = "gator_objdict_add"; /*Routine name */
94 if (objdict_debug)
95 fprintf(stderr, "[%s:%s] Called\n", mn, rn);
98 * Finally, return the good news.
100 return (0);
102 } /*gator_objdict_add */
104 /*------------------------------------------------------------------------
105 * gator_objdict_delete
107 * Description:
108 * Delete an entry from the gator object dictionary.
110 * Arguments:
111 * struct onode *objtodelete: Ptr to object to delete.
113 * Returns:
114 * 0 on success,
115 * Error value otherwise.
117 * Environment:
118 * Nothing interesting.
120 * Side Effects:
121 * As advertised.
122 *------------------------------------------------------------------------*/
125 gator_objdict_delete(struct onode *objtodelete)
126 { /*gator_objdict_delete */
128 static char rn[] = "gator_objdict_delete"; /*Routine name */
130 if (objdict_debug)
131 fprintf(stderr, "[%s:%s] Called\n", mn, rn);
134 * Finally, return the good news.
136 return (0);
138 } /*gator_objdict_delete */
140 /*------------------------------------------------------------------------
141 * gator_objdict_lookup
143 * Description:
144 * Look up a gator object by name.
146 * Arguments:
147 * char *nametofind: String name of desired onode.
149 * Returns:
150 * Ptr to desired onode if successful,
151 * Null pointer otherwise.
153 * Environment:
154 * Nothing interesting.
156 * Side Effects:
157 * As advertised.
158 *------------------------------------------------------------------------*/
160 struct onode *
161 gator_objdict_lookup(char *nametofind)
162 { /*gator_objdict_lookup */
164 static char rn[] = "gator_objdict_lookup"; /*Routine name */
166 if (objdict_debug)
167 fprintf(stderr, "[%s:%s] Called\n", mn, rn);
170 * Finally, return the good news.
172 return (NULL);
174 } /*gator_objdict_lookup */