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
|
/* ISC license. */
#ifndef S6RCD_CLIENT_H
#define S6RCD_CLIENT_H
#include <stdint.h>
#include <skalibs/tai.h>
#include <skalibs/iopause.h>
#include <skalibs/textmessage.h>
#include <s6-rc/connection.h>
/* Client connection */
typedef struct client_s client_t, *client_t_ref ;
struct client_s
{
client_t *prev ;
client_t *next ;
uint32_t xindex[2] ;
s6rc_connection_t connection ;
textmessage_sender_t monitor ;
unsigned char *monitor_filter ;
uint32_t monitor_verbosity ;
uint8_t perms ;
} ;
#define CLIENT_ZERO { .next = 0, .xindex = 0, .connection = S6RC_CONNECTION_ZERO, .monitor = TEXTMESSAGE_SENDER_ZERO, .monitor_filter = 0, .monitor_verbosity = 0, .perms = 0 }
extern tain_t client_answer_tto ;
extern client_t *client_head ;
extern uint32_t client_connections ;
extern void client_yoink (client_t **) ;
extern int client_prepare_iopause (client_t *, tain_t *, iopause_fd *, uint32_t *) ;
extern int client_flush (client_t *, iopause_fd const *) ;
extern int client_add (int, uint8_t) ;
/* Monitors */
extern uint32_t client_monitors ;
extern void monitor_finish (client_t *) ;
extern void monitor_put (uint32_t, char const *, size_t) ;
extern void monitor_announce (uint32_t, uint8_t) ;
#endif
|