#ifndef __RES_SET_H__ #define __RES_SET_H__ #include #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 *class; 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: */