Macros | Functions
MyQttd Context: API provided to handle MyQttd contexts

Macros

#define MYQTTD_MYQTT_CTX(_myqtt_ctx)   (myqttd_ctx_get_myqtt_ctx (_myqtt_ctx))
 Allows to get the myqtt context associated to the myqttd context provided. More...
 

Functions

void myqttd_ctx_add_listener_activator (MyQttdCtx *ctx, const char *proto, MyQttdListenerActivator listener_activator, axlPointer user_data)
 Allows to register a new listener activator, a handler that is called to startup a MQTT listener running a particular protocol (or maybe user defined behaviour). More...
 
void myqttd_ctx_add_on_day_change (MyQttdCtx *ctx, MyQttdOnDateChange on_day_change, axlPointer ptr)
 Allows to add a handler to will be called every time a day change is detected. More...
 
void myqttd_ctx_add_on_month_change (MyQttdCtx *ctx, MyQttdOnDateChange on_month_change, axlPointer ptr)
 Allows to add a handler to will be called every time a month change is detected. More...
 
void myqttd_ctx_add_on_publish (MyQttdCtx *ctx, MyQttdOnPublish on_publish, axlPointer user_data)
 Allows to configure (add) a new onPublish handler that will be called every time a publish operation is received. More...
 
void myqttd_ctx_free (MyQttdCtx *ctx)
 Deallocates the myqttd context provided. More...
 
axlPointer myqttd_ctx_get_data (MyQttdCtx *ctx, const char *key)
 Allows to retrieve data stored by myqttd_ctx_set_data and myqttd_ctx_set_data_full. More...
 
MyQttCtxmyqttd_ctx_get_myqtt_ctx (MyQttdCtx *ctx)
 Allows to get the MyQttdCtx associated to the myqtt. More...
 
axl_bool myqttd_ctx_is_child (MyQttdCtx *ctx)
 Allows to check if the provided myqttd ctx is associated to a child process. More...
 
MyQttdCtxmyqttd_ctx_new ()
 Allows to create a new myqttd context (an object used by the myqttd runtime to hold its current run time state). More...
 
void myqttd_ctx_notify_date_change (MyQttdCtx *ctx, long new_value, MyQttdDateItem item_type)
 Allows to notify day change on currently registered handlers. More...
 
void myqttd_ctx_set_data (MyQttdCtx *ctx, const char *key, axlPointer data)
 Allows to configure user defined data indexed by the provided key, associated to the MyQttdCtx. More...
 
void myqttd_ctx_set_data_full (MyQttdCtx *ctx, const char *key, axlPointer data, axlDestroyFunc key_destroy, axlDestroyFunc data_destroy)
 Allows to configure user defined data indexed by the provided key, associated to the MyQttdCtx, with optionals destroy handlers. More...
 
void myqttd_ctx_set_myqtt_ctx (MyQttdCtx *ctx, MyQttCtx *myqtt_ctx)
 Allows to configure the myqtt context (MyQttCtx) associated to the provided MyQttdCtx. More...
 
void myqttd_ctx_wait (MyQttdCtx *ctx, long microseconds)
 Allows to implement a microseconds blocking wait. More...
 

Detailed Description