]>
Commit | Line | Data |
---|---|---|
6d409214 | 1 | /* |
2 | * $Source$ | |
3 | * $Author$ | |
4 | * $Header$ | |
5 | * | |
6 | * Copyright (C) 1987 by the Massachusetts Institute of Technology | |
7 | * | |
8 | * $Log$ | |
d30a7b2b | 9 | * Revision 1.7 1988-04-19 14:30:47 kit |
10 | * Added new sms_version_2 for new version. | |
6d409214 | 11 | * |
d30a7b2b | 12 | * Revision 1.6 87/08/22 17:11:59 wesommer |
13 | * Added flags for user filesystems. | |
14 | * | |
1a1fe0bc | 15 | * Revision 1.5 87/08/02 21:50:25 wesommer |
16 | * Added function prototypes. | |
17 | * | |
f4a12540 | 18 | * Revision 1.4 87/06/23 16:13:36 wesommer |
19 | * Added new request. | |
20 | * | |
f358be80 | 21 | * Revision 1.3 87/06/04 01:31:16 wesommer |
22 | * Renamed retrieve to query. | |
23 | * | |
4bce71fa | 24 | * Revision 1.2 87/06/01 03:33:32 wesommer |
25 | * Added new procedure numbers. | |
26 | * | |
6d409214 | 27 | */ |
28 | ||
0fa91a0a | 29 | #include "sms_et.h" |
30 | ||
d30a7b2b | 31 | #define SMS_VERSION_1 1 /* Version in use from 7/87 to 4/88 */ |
32 | #define SMS_VERSION_2 2 /* After 4/88, new query lib */ | |
0fa91a0a | 33 | |
34 | #define SMS_NOOP 0 | |
35 | #define SMS_AUTH 1 | |
6d409214 | 36 | #define SMS_SHUTDOWN 2 |
4bce71fa | 37 | #define SMS_QUERY 3 |
f358be80 | 38 | #define SMS_ACCESS 4 |
1a1fe0bc | 39 | #define SMS_DO_UPDATE 5 |
40 | #define SMS_MAX_PROC 5 | |
41 | ||
42 | #define SMS_FS_STUDENT 0x0001 | |
43 | #define SMS_FS_FACULTY 0x0002 | |
44 | #define SMS_FS_STAFF 0x0004 | |
45 | #define SMS_FS_MISC 0x0008 | |
f4a12540 | 46 | |
47 | #ifdef __STDC__ | |
48 | int sms_connect(); | |
49 | int sms_disconnect(); | |
50 | int sms_auth(); | |
51 | int sms_access(char *handle, int argc, char **argv); | |
52 | int sms_access_internal(int argc, char **argv); | |
53 | int sms_query(char *handle, int argc, char **argv, | |
54 | int (*callback)(), char *callarg); | |
55 | int sms_query_internal(int argc, char **argv, | |
56 | int (*callback)(), char *callarg); | |
57 | int sms_noop(); | |
58 | int sms_shutdown(char *reason); | |
59 | #else !__STDC__ | |
60 | int sms_connect(); | |
61 | int sms_disconnect(); | |
62 | int sms_auth(); | |
63 | int sms_access(); | |
64 | int sms_query(); | |
65 | int sms_noop(); | |
66 | int sms_shutdown(); | |
67 | #endif __STDC__ |