Name
linc-types -- the base linc types and utilities
Details
enum LINCConnectionOptions
typedef enum {
LINC_CONNECTION_SSL = 1 << 0,
LINC_CONNECTION_NONBLOCKING = 1 << 1,
LINC_CONNECTION_BLOCK_SIGNAL = 1 << 2
} LINCConnectionOptions; |
struct LINCProtocolInfo
struct LINCProtocolInfo {
const char *name;
int family;
int addr_len;
int stream_proto_num;
LINCProtocolFlags flags;
LINCProtocolSetupFunc setup;
LINCProtocolDestroyFunc destroy;
LINCProtocolGetSockAddrFunc get_sockaddr;
LINCProtocolGetSockInfoFunc get_sockinfo;
}; |
LINC_MUTEX_LOCK()
#define LINC_MUTEX_LOCK(x) |
Locks the mutex pointed to by x if the mutex is non NULL.
A NULL condition signals that there is no need to do locking.
LINC_MUTEX_UNLOCK()
#define LINC_MUTEX_UNLOCK(x) |
Unlocks the mutex pointed to by x if the mutex is non NULL.
A NULL condition signals that there is no need to do locking.
linc_mutex_new ()
GMutex* linc_mutex_new (void); |
Creates a mutes, iff threads are supported, initialized and
linc_set_threaded has been called.