]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - lib/libss/ss.h
Change REGENTS -> AUTHOR in the copyright.
[FreeBSD/FreeBSD.git] / lib / libss / ss.h
1 /*
2  * Copyright 1987, 1988 by MIT Student Information Processing Board
3  *
4  * For copyright information, see mit-sipb-copyright.h.
5  */
6
7 #ifndef _ss_h
8 #define _ss_h __FILE__
9
10 #if 0
11 #include <ss/mit-sipb-copyright.h>
12 #endif
13 #ifndef IN_MK_CMDS
14 #  ifdef IN_LIBSS
15 #    include "ss_err.h"
16 #  else
17 #    include <ss/ss_err.h>
18 #  endif
19 #endif
20
21 extern int errno;
22
23 #ifdef __STDC__
24 #define __SS_CONST const
25 #define __SS_PROTO (int, const char * const *, int, void *)
26 #else
27 #define __SS_CONST
28 #define __SS_PROTO ()
29 #endif
30
31 typedef __SS_CONST struct _ss_request_entry {
32     __SS_CONST char * __SS_CONST *command_names; /* whatever */
33     void (* __SS_CONST function) __SS_PROTO; /* foo */
34     __SS_CONST char * __SS_CONST info_string;   /* NULL */
35     int flags;                  /* 0 */
36 } ss_request_entry;
37
38 typedef __SS_CONST struct _ss_request_table {
39     int version;
40     ss_request_entry *requests;
41 } ss_request_table;
42
43 #define SS_RQT_TBL_V2   2
44
45 typedef struct _ss_rp_options { /* DEFAULT VALUES */
46     int version;                /* SS_RP_V1 */
47     void (*unknown) __SS_PROTO; /* call for unknown command */
48     int allow_suspend;
49     int catch_int;
50 } ss_rp_options;
51
52 #define SS_RP_V1 1
53
54 #define SS_OPT_DONT_LIST        0x0001
55 #define SS_OPT_DONT_SUMMARIZE   0x0002
56
57 void ss_help __SS_PROTO;
58 char *ss_current_request();
59 char *ss_name();
60 #ifdef __STDC__
61 void ss_error (int, long, char const *, ...);
62 void ss_perror (int, long, char const *);
63 #else
64 void ss_error ();
65 void ss_perror ();
66 #endif
67 void ss_abort_subsystem();
68 extern ss_request_table ss_std_requests;
69 #endif /* _ss_h */