2 * Copyright 1987, 1988 by MIT Student Information Processing Board
4 * For copyright information, see copyright.h.
10 #include <ss/copyright.h>
11 #include <ss/ss_err.h>
16 #define __SS_CONST const
17 #define __SS_PROTO (int, const char * const *, int, void *)
23 typedef __SS_CONST struct _ss_request_entry {
24 __SS_CONST char * __SS_CONST *command_names; /* whatever */
25 void (* __SS_CONST function) __SS_PROTO; /* foo */
26 __SS_CONST char * __SS_CONST info_string; /* NULL */
30 typedef __SS_CONST struct _ss_request_table {
32 ss_request_entry *requests;
35 #define SS_RQT_TBL_V2 2
37 typedef struct _ss_rp_options { /* DEFAULT VALUES */
38 int version; /* SS_RP_V1 */
39 void (*unknown) __SS_PROTO; /* call for unknown command */
46 #define SS_OPT_DONT_LIST 0x0001
47 #define SS_OPT_DONT_SUMMARIZE 0x0002
49 void ss_help __SS_PROTO;
51 char *ss_current_request(); /* This is actually a macro */
54 char *ss_name(int sci_idx);
55 void ss_error (int, long, char const *, ...);
56 void ss_perror (int, long, char const *);
57 int ss_create_invocation(char *, char *, char *, ss_request_table *, int *);
58 void ss_delete_invocation(int);
60 void ss_add_request_table(int, ss_request_table *, int, int *);
61 void ss_delete_request_table(int, ss_request_table *, int *);
62 void ss_abort_subsystem(int sci_idx, int code);
67 int ss_create_invocation();
68 void ss_delete_invocation();
70 void ss_add_request_table();
71 void ss_delete_request_table();
72 void ss_abort_subsystem();
74 extern ss_request_table ss_std_requests;