aboutsummaryrefslogtreecommitdiff
path: root/src/res-set.h
blob: deda3a26be1f34e1e7d391858d8ea0d60a38bf6d (plain)
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
51
#ifndef __RES_SET_H__
#define __RES_SET_H__

#include <stdint.h>

#ifdef	__cplusplus
extern "C" {
#endif



union resconn_u;

typedef enum {
    RESPROTO_RSET_STATE_CREATED = 0,
    RESPROTO_RSET_STATE_CONNECTED,
    RESPROTO_RSET_STATE_KILLED,
} resset_state_t;

typedef struct resset_s {
    struct resset_s  *next;
    int32_t           refcnt;
    union resconn_u  *resconn;
    char             *peer;
    uint32_t          id;
    resset_state_t    state;
    char             *klass;
    uint32_t          mode;
    struct {
        uint32_t all;
        uint32_t opt;
        uint32_t share;
        uint32_t mask;
    }                 flags;
    void             *userdata;
} resset_t;


#ifdef	__cplusplus
};
#endif

#endif /* __RES_SET_H__ */

/* 
 * Local Variables:
 * c-basic-offset: 4
 * indent-tabs-mode: nil
 * End:
 * vim:set expandtab shiftwidth=4:
 */