-
Notifications
You must be signed in to change notification settings - Fork 1
/
spr.h
50 lines (39 loc) · 969 Bytes
/
spr.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/* Benjamin Ellerby
* Ray Luo
* Evan Ricks
* Oliver Smith-Denny
* spr.h, header file for Portcullis, the Secure Port Reservation (SPR) Daemon
* Published under the MIT License copyright (C) 2017 by the aformentioned authors
* Defines functions related to interacting with the SPR Daemon
*/
#undef __BEGIN_DECLS
#undef __END_DECLS
#ifdef __cplusplus
#define __BEGIN_DECLS extern "C" {
#define __END_DECLS }
#else
#define __BEGIN_DECLS
#define __END_DECLS
#endif
#undef __P
#if defined (__STDC__) || defined (_AIX) \
|| (defined (__mips) && defined (_SYSTYPE_SVR4)) \
|| defined(__cplusplus)
#define __P(protos) protos
#else
#define __P(protos) ()
#endif
#ifndef _SPR_H_
#define _SPR_H_ 1
__BEGIN_DECLS
#define _GNU_SOURCE
typedef struct sprFDSocks {
int recvSock;
int udsListen;
int udsConnect;
char *udsLoc;
} sprFDSet;
int secure_bind __P((int portNum, sprFDSet *returnSet));
int secure_close __P((sprFDSet *closeSet));
__END_DECLS
#endif