Typedefs | Enumerations
ValvulaTypes: Common types used by libValvula API

Typedefs

typedef struct _ValvulaAsyncQueue ValvulaAsyncQueue
 Message queue implementation that allows to communicate several threads in a safe manner. More...
 
typedef __OS_COND_TYPE__ ValvulaCond
 Conditional variable mutex, encapsulating the underlaying operating system implementation for conditional variables inside critical sections. More...
 
typedef struct _ValvulaConnection ValvulaConnection
 A single connection representing in incoming request to be handled or a server that can receive new connections. More...
 
typedef struct _ValvulaCtx ValvulaCtx
 A single valvula context definition. More...
 
typedef struct _ValvulaHash ValvulaHash
 Thread safe hash definition. More...
 
typedef __OS_MUTEX_TYPE__ ValvulaMutex
 Mutex definition that encapsulates the underlaying mutex API. More...
 
typedef struct
_ValvulaRequestRegistry 
ValvulaRequestRegistry
 A process handler registry. More...
 
typedef __OS_THREAD_TYPE__ ValvulaThread
 Thread definition, which encapsulates the os thread API, allowing to provide a unified type for all threading interface. More...
 
typedef axlPointer(* ValvulaThreadFunc )(axlPointer user_data)
 Handle definition for the family of function that is able to accept the function valvula_thread_create. More...
 

Enumerations

enum  ValvulaPeerRole { ValvulaRoleUnknown, ValvulaRoleInitiator, ValvulaRoleListener, ValvulaRoleMasterListener }
 Connection role inside libValvula and ValvulaD server. More...
 
enum  ValvulaState {
  VALVULA_STATE_OK = 0, VALVULA_STATE_DUNNO = 1, VALVULA_STATE_REJECT = 2, VALVULA_STATE_DEFER_IF_PERMIT = 3,
  VALVULA_STATE_DEFER_IF_REJECT = 4, VALVULA_STATE_DEFER = 5, VALVULA_STATE_BCC = 6, VALVULA_STATE_DISCARD = 7,
  VALVULA_STATE_HOLD = 8, VALVULA_STATE_PREPEND = 9, VALVULA_STATE_REDIRECT = 10, VALVULA_STATE_LOG = 11,
  VALVULA_STATE_GENERIC_ERROR = 12, VALVULA_STATE_FILTER = 13
}
 These are valvula states that can be returned by handlers. More...
 
enum  ValvulaThreadConf { VALVULA_THREAD_CONF_END = 0, VALVULA_THREAD_CONF_JOINABLE = 1, VALVULA_THREAD_CONF_DETACHED = 2 }
 Thread configuration its to modify default behaviour provided by the thread creation API. More...
 

Detailed Description