Hybrid ICN (hICN) plugin  v21.06-rc0-4-g18fa668
Classes | Typedefs | Functions
loop.h File Reference

Face manager main loop. More...

#include <hicn/facemgr/api.h>
Include dependency graph for loop.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  fd_callback_data_t
 
struct  timer_callback_data_t
 

Typedefs

typedef int(* fd_callback_t) (void *owner, int fd, void *data)
 
typedef struct loop_s loop_t
 

Functions

loop_t * loop_create ()
 Creates a main loop. More...
 
void loop_free (loop_t *loop)
 Releases a loop instance and frees all associated memory. More...
 
int loop_dispatch (loop_t *loop)
 Runs the loop instance to process events. More...
 
int loop_undispatch (loop_t *loop)
 Terminates the dispatching of events. More...
 
void loop_break (loop_t *loop)
 Breaks out of the loop. More...
 
int loop_callback (loop_t *loop, facemgr_cb_type_t type, void *data)
 Callback for loop helpers. More...
 

Detailed Description

Face manager main loop.

Function Documentation

◆ loop_break()

void loop_break ( loop_t *  loop)

Breaks out of the loop.

Parameters
[in]loop- Pointer to the loop instance

◆ loop_callback()

int loop_callback ( loop_t *  loop,
facemgr_cb_type_t  type,
void *  data 
)

Callback for loop helpers.

Parameters
[in]loop- Pointer to the loop instance
[in]type- Type of service to be requested
[in]data- Service specific data

◆ loop_create()

loop_t* loop_create ( )

Creates a main loop.

Returns
Pointer to the newly created loop, or NULL in case of error

◆ loop_dispatch()

int loop_dispatch ( loop_t *  loop)

Runs the loop instance to process events.

Parameters
[in]loop- Pointer to the loop instance
Returns
0 if successful, -1 otherwise

◆ loop_free()

void loop_free ( loop_t *  loop)

Releases a loop instance and frees all associated memory.

Parameters
[in]loop- Pointer to the loop instance to free

◆ loop_undispatch()

int loop_undispatch ( loop_t *  loop)

Terminates the dispatching of events.

Parameters
[in]loop- Pointer to the loop instance