All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Typedefs | Functions
event.h File Reference

A simple event queue. More...

Go to the source code of this file.

Typedefs

typedef void(* fr_event_callback_t )(void *, struct timeval *now)
 
typedef void(* fr_event_fd_handler_t )(fr_event_list_t *el, int sock, void *ctx)
 
typedef struct fr_event_list_t fr_event_list_t
 
typedef void(* fr_event_status_t )(struct timeval *)
 
typedef struct fr_event_t fr_event_t
 

Functions

int fr_event_delete (fr_event_list_t *el, fr_event_t **parent)
 
int fr_event_fd_delete (fr_event_list_t *el, int type, int fd)
 
int fr_event_fd_insert (fr_event_list_t *el, int type, int fd, fr_event_fd_handler_t handler, void *ctx)
 
int fr_event_insert (fr_event_list_t *el, fr_event_callback_t callback, void *ctx, struct timeval *when, fr_event_t **parent)
 
fr_event_list_tfr_event_list_create (TALLOC_CTX *ctx, fr_event_status_t status)
 
int fr_event_list_num_elements (fr_event_list_t *el)
 
int fr_event_list_num_fds (fr_event_list_t *el)
 
int fr_event_loop (fr_event_list_t *el)
 
void fr_event_loop_exit (fr_event_list_t *el, int code)
 
bool fr_event_loop_exiting (fr_event_list_t *el)
 
int fr_event_now (fr_event_list_t *el, struct timeval *when)
 
int fr_event_run (fr_event_list_t *el, struct timeval *when)
 

Detailed Description

A simple event queue.

Id:
31739ff424ec641b3d99b9efb20b3b429f31a601

Definition in file event.h.

Typedef Documentation

typedef void(* fr_event_callback_t)(void *, struct timeval *now)

Definition at line 36 of file event.h.

typedef void(* fr_event_fd_handler_t)(fr_event_list_t *el, int sock, void *ctx)

Definition at line 38 of file event.h.

Definition at line 33 of file event.h.

typedef void(* fr_event_status_t)(struct timeval *)

Definition at line 37 of file event.h.

typedef struct fr_event_t fr_event_t

Definition at line 34 of file event.h.

Function Documentation

int fr_event_delete ( fr_event_list_t el,
fr_event_t **  parent 
)

Definition at line 172 of file event.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int fr_event_fd_delete ( fr_event_list_t el,
int  type,
int  fd 
)

Definition at line 444 of file event.c.

+ Here is the caller graph for this function:

int fr_event_fd_insert ( fr_event_list_t el,
int  type,
int  fd,
fr_event_fd_handler_t  handler,
void *  ctx 
)

Definition at line 324 of file event.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int fr_event_insert ( fr_event_list_t el,
fr_event_callback_t  callback,
void *  ctx,
struct timeval *  when,
fr_event_t **  parent 
)

Definition at line 204 of file event.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

fr_event_list_t* fr_event_list_create ( TALLOC_CTX *  ctx,
fr_event_status_t  status 
)

Definition at line 120 of file event.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int fr_event_list_num_elements ( fr_event_list_t el)

Definition at line 164 of file event.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int fr_event_list_num_fds ( fr_event_list_t el)

Definition at line 157 of file event.c.

+ Here is the caller graph for this function:

int fr_event_loop ( fr_event_list_t el)

Definition at line 507 of file event.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void fr_event_loop_exit ( fr_event_list_t el,
int  code 
)

Definition at line 495 of file event.c.

+ Here is the caller graph for this function:

bool fr_event_loop_exiting ( fr_event_list_t el)

Definition at line 502 of file event.c.

+ Here is the caller graph for this function:

int fr_event_now ( fr_event_list_t el,
struct timeval *  when 
)

Definition at line 310 of file event.c.

+ Here is the caller graph for this function:

int fr_event_run ( fr_event_list_t el,
struct timeval *  when 
)

Definition at line 266 of file event.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function: