Face manager main loop.
More...
#include <hicn/facemgr/api.h>
Go to the source code of this file.
|
|
typedef int(* | fd_callback_t) (void *owner, int fd, void *data) |
| |
|
typedef struct loop_s | loop_t |
| |
◆ 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()
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 |