| 3 * |
3 * |
| 4 * Created by: Robert French |
4 * Created by: Robert French |
| 5 * |
5 * |
| 6 * $Source$ |
6 * $Source$ |
| 7 * $Author: warmenhoven $ |
7 * $Author: warmenhoven $ |
| 8 * $Id: zephyr.h 2096 2001-07-31 01:00:39Z warmenhoven $ |
8 * $Id: zephyr.h 2432 2001-10-03 19:38:28Z warmenhoven $ |
| 9 * |
9 * |
| 10 * Copyright (c) 1987,1988,1991 by the Massachusetts Institute of |
10 * Copyright (c) 1987,1988,1991 by the Massachusetts Institute of |
| 11 * Technology. For copying and distribution information, see the |
11 * Technology. For copying and distribution information, see the |
| 12 * file "mit-copyright.h". |
12 * file "mit-copyright.h". |
| 13 */ |
13 */ |
| 164 Code_t ZFormatRawNoticeList ZP((ZNotice_t *notice, char *list[], int nitems, |
161 Code_t ZFormatRawNoticeList ZP((ZNotice_t *notice, char *list[], int nitems, |
| 165 char **buffer, int *ret_len)); |
162 char **buffer, int *ret_len)); |
| 166 Code_t ZLocateUser ZP((char *, int *, Z_AuthProc)); |
163 Code_t ZLocateUser ZP((char *, int *, Z_AuthProc)); |
| 167 Code_t ZRequestLocations ZP((char *, ZAsyncLocateData_t *, |
164 Code_t ZRequestLocations ZP((char *, ZAsyncLocateData_t *, |
| 168 ZNotice_Kind_t, Z_AuthProc)); |
165 ZNotice_Kind_t, Z_AuthProc)); |
| |
166 Code_t ZhmStat ZP((struct in_addr *, ZNotice_t *)); |
| 169 Code_t ZInitialize ZP((void)); |
167 Code_t ZInitialize ZP((void)); |
| 170 Code_t ZSetServerState ZP((int)); |
168 Code_t ZSetServerState ZP((int)); |
| 171 Code_t ZSetFD ZP((int)); |
169 Code_t ZSetFD ZP((int)); |
| 172 Code_t ZFormatSmallRawNotice ZP((ZNotice_t*, ZPacket_t, int*)); |
170 Code_t ZFormatSmallRawNotice ZP((ZNotice_t*, ZPacket_t, int*)); |
| 173 int ZCompareUID ZP((ZUnique_Id_t*, ZUnique_Id_t*)); |
171 int ZCompareUID ZP((ZUnique_Id_t*, ZUnique_Id_t*)); |
| 176 Code_t ZMakeAscii ZP((char*, int, unsigned char*, int)); |
174 Code_t ZMakeAscii ZP((char*, int, unsigned char*, int)); |
| 177 Code_t ZMakeAscii32 ZP((char *, int, unsigned long)); |
175 Code_t ZMakeAscii32 ZP((char *, int, unsigned long)); |
| 178 Code_t ZMakeAscii16 ZP((char *, int, unsigned int)); |
176 Code_t ZMakeAscii16 ZP((char *, int, unsigned int)); |
| 179 Code_t ZReceivePacket ZP((ZPacket_t, int*, struct sockaddr_in*)); |
177 Code_t ZReceivePacket ZP((ZPacket_t, int*, struct sockaddr_in*)); |
| 180 Code_t ZCheckAuthentication ZP((ZNotice_t*, struct sockaddr_in*)); |
178 Code_t ZCheckAuthentication ZP((ZNotice_t*, struct sockaddr_in*)); |
| |
179 Code_t ZSetLocation ZP((char *exposure)); |
| |
180 Code_t ZUnsetLocation ZP((void)); |
| 181 Code_t ZFlushMyLocations ZP((void)); |
181 Code_t ZFlushMyLocations ZP((void)); |
| 182 #ifdef ZEPHYR_USES_KERBEROS |
|
| 183 Code_t ZFormatAuthenticNotice ZP((ZNotice_t*, char*, int, int*, C_Block)); |
|
| 184 #endif |
|
| 185 Code_t ZFormatRawNotice ZP((ZNotice_t *, char**, int *)); |
182 Code_t ZFormatRawNotice ZP((ZNotice_t *, char**, int *)); |
| 186 Code_t ZRetrieveSubscriptions ZP((unsigned short, int*)); |
183 Code_t ZRetrieveSubscriptions ZP((unsigned short, int*)); |
| 187 Code_t ZOpenPort ZP((unsigned short *port)); |
184 Code_t ZOpenPort ZP((unsigned short *port)); |
| 188 Code_t ZClosePort ZP((void)); |
185 Code_t ZClosePort ZP((void)); |
| 189 Code_t ZFlushLocations ZP((void)); |
186 Code_t ZFlushLocations ZP((void)); |
| 228 #define ZGetFD() __Zephyr_fd |
225 #define ZGetFD() __Zephyr_fd |
| 229 #define ZQLength() __Q_CompleteLength |
226 #define ZQLength() __Q_CompleteLength |
| 230 #define ZGetDestAddr() __HM_addr |
227 #define ZGetDestAddr() __HM_addr |
| 231 #define ZGetRealm() __Zephyr_realm |
228 #define ZGetRealm() __Zephyr_realm |
| 232 |
229 |
| 233 #ifdef ZEPHYR_USES_KERBEROS |
|
| 234 /* Session key for last parsed packet - server only */ |
|
| 235 extern C_Block __Zephyr_session; |
|
| 236 #define ZGetSession() (__Zephyr_session) |
|
| 237 #else |
|
| 238 #define __Zephyr_realm ("local-realm") |
|
| 239 #endif |
|
| 240 |
|
| 241 |
|
| 242 #ifdef Z_DEBUG |
230 #ifdef Z_DEBUG |
| 243 void ZSetDebug ZP((void (*)(ZCONST char *, va_list, void *), void *)); |
231 void ZSetDebug ZP((void (*)(ZCONST char *, va_list, void *), void *)); |
| 244 #define ZSetDebug(proc,closure) (__Z_debug_print=(proc), \ |
232 #define ZSetDebug(proc,closure) (__Z_debug_print=(proc), \ |
| 245 __Z_debug_print_closure=(closure), \ |
233 __Z_debug_print_closure=(closure), \ |
| 246 (void) 0) |
234 (void) 0) |
| 336 |
324 |
| 337 #define WG_CTL_USER "USER" /* Inst: User request */ |
325 #define WG_CTL_USER "USER" /* Inst: User request */ |
| 338 #define USER_REREAD "REREAD" /* Opcode: Reread desc file */ |
326 #define USER_REREAD "REREAD" /* Opcode: Reread desc file */ |
| 339 #define USER_SHUTDOWN "SHUTDOWN" /* Opcode: Go catatonic */ |
327 #define USER_SHUTDOWN "SHUTDOWN" /* Opcode: Go catatonic */ |
| 340 #define USER_STARTUP "STARTUP" /* Opcode: Come out of it */ |
328 #define USER_STARTUP "STARTUP" /* Opcode: Come out of it */ |
| |
329 #define USER_EXIT "EXIT" /* Opcode: Exit the client */ |
| 341 |
330 |
| 342 #endif /* __ZEPHYR_H__ */ |
331 #endif /* __ZEPHYR_H__ */ |