NUGU SDK Linux  1.7.6
nugu_event.h File Reference
#include <nugu.h>
+ Include dependency graph for nugu_event.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef struct _nugu_event NuguEvent
 Event object.
 

Enumerations

enum  nugu_event_type { NUGU_EVENT_TYPE_DEFAULT , NUGU_EVENT_TYPE_WITH_ATTACHMENT }
 event types More...
 

Functions

NUGU_API void nugu_event_free (NuguEvent *nev)
 Destroy the event object. More...
 
NUGU_API char * nugu_event_generate_payload (NuguEvent *nev)
 Generate JSON payload using nugu_event attributes. More...
 
NUGU_API int nugu_event_get_seq (NuguEvent *nev)
 Get the current sequence number of attachment data. More...
 
NUGU_API enum nugu_event_type nugu_event_get_type (NuguEvent *nev)
 Get the type of NuguEvent. More...
 
NUGU_API int nugu_event_increase_seq (NuguEvent *nev)
 Increase the sequence number. More...
 
NUGU_API NuguEventnugu_event_new (const char *name_space, const char *name, const char *version)
 Create new event object. More...
 
NUGU_API const char * nugu_event_peek_context (NuguEvent *nev)
 Get the context of event. More...
 
NUGU_API const char * nugu_event_peek_dialog_id (NuguEvent *nev)
 Get the dialog-request-id of event. More...
 
NUGU_API const char * nugu_event_peek_json (NuguEvent *nev)
 Get the payload of event. More...
 
NUGU_API const char * nugu_event_peek_mime_type (NuguEvent *nev)
 Get the attachment mime type of NuguEvent. More...
 
NUGU_API const char * nugu_event_peek_msg_id (NuguEvent *nev)
 Get the message-id of event. More...
 
NUGU_API const char * nugu_event_peek_name (NuguEvent *nev)
 Get the name of event. More...
 
NUGU_API const char * nugu_event_peek_namespace (NuguEvent *nev)
 Get the namespace of event. More...
 
NUGU_API const char * nugu_event_peek_referrer_id (NuguEvent *nev)
 Get the referer-dialog-request-id of event. More...
 
NUGU_API const char * nugu_event_peek_version (NuguEvent *nev)
 Get the version of event. More...
 
NUGU_API int nugu_event_set_context (NuguEvent *nev, const char *context)
 Set text context of event. More...
 
NUGU_API int nugu_event_set_dialog_id (NuguEvent *nev, const char *dialog_id)
 Set the dialog-request-id of event. More...
 
NUGU_API int nugu_event_set_json (NuguEvent *nev, const char *json)
 Set the payload of event. More...
 
NUGU_API int nugu_event_set_mime_type (NuguEvent *nev, const char *type)
 Set the attachment mime type of NuguEvent. More...
 
NUGU_API int nugu_event_set_referrer_id (NuguEvent *nev, const char *referrer_id)
 Set the referer-dialog-request-id of event. More...
 
NUGU_API int nugu_event_set_type (NuguEvent *nev, enum nugu_event_type type)
 Set the type of NuguEvent. More...