NUGU SDK Linux  1.7.6
nugu_equeue.h File Reference
#include <nugu.h>
+ Include dependency graph for nugu_equeue.h:

Go to the source code of this file.

Typedefs

typedef void(* NuguEqueueCallback) (enum nugu_equeue_type type, void *data, void *userdata)
 Callback prototype for receiving an event.
 
typedef void(* NuguEqueueDestroyCallback) (void *data)
 Callback prototype for releasing data after event delivery is done.
 

Enumerations

enum  nugu_equeue_type {
  NUGU_EQUEUE_TYPE_NEW_DIRECTIVE = 0 , NUGU_EQUEUE_TYPE_NEW_ATTACHMENT , NUGU_EQUEUE_TYPE_INVALID_TOKEN , NUGU_EQUEUE_TYPE_SEND_PING_FAILED ,
  NUGU_EQUEUE_TYPE_EVENT_SEND_RESULT , NUGU_EQUEUE_TYPE_EVENT_RESPONSE , NUGU_EQUEUE_TYPE_REGISTRY_HEALTH , NUGU_EQUEUE_TYPE_REGISTRY_SERVERS ,
  NUGU_EQUEUE_TYPE_REGISTRY_FAILED , NUGU_EQUEUE_TYPE_SERVER_CONNECTED , NUGU_EQUEUE_TYPE_SERVER_DISCONNECTED , NUGU_EQUEUE_TYPE_DIRECTIVES_CLOSED ,
  NUGU_EQUEUE_TYPE_MAX = 255
}
 event types More...
 

Functions

NUGU_API void nugu_equeue_deinitialize (void)
 De-initialize the event queue.
 
NUGU_API int nugu_equeue_initialize (void)
 Initialize the event queue. More...
 
NUGU_API int nugu_equeue_push (enum nugu_equeue_type type, void *data)
 Push new event with data to queue and trigger event callback in GMainloop thread context. More...
 
NUGU_API int nugu_equeue_set_handler (enum nugu_equeue_type type, NuguEqueueCallback callback, NuguEqueueDestroyCallback destroy_callback, void *userdata)
 Set handler for event type. More...
 
NUGU_API int nugu_equeue_unset_handler (enum nugu_equeue_type type)
 Unset handler for event type. More...