Webcom C SDK
Typedefs | Enumerations | Functions
webcom-on.h File Reference
#include "webcom-base.h"
Include dependency graph for webcom-on.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef void * on_handle_t
 
typedef int(* on_callback_f) (wc_context_t *ctx, on_handle_t handle, char *data, char *current_key, char *previous_key)
 

Enumerations

enum  on_event_type { ON_CHILD_ADDED, ON_CHILD_REMOVED, ON_CHILD_CHANGED, ON_VALUE }
 

Functions

on_handle_t wc_datasync_on_value (wc_context_t *ctx, char *path, on_callback_f callback)
 
on_handle_t wc_datasync_on_child_added (wc_context_t *ctx, char *path, on_callback_f callback)
 
on_handle_t wc_datasync_on_child_changed (wc_context_t *ctx, char *path, on_callback_f callback)
 
on_handle_t wc_datasync_on_child_removed (wc_context_t *ctx, char *path, on_callback_f callback)
 
char * wc_datasync_on_handle_get_path (on_handle_t h)
 
wc_context_twc_datasync_on_handle_get_ctx (on_handle_t h)
 
void wc_datasync_off (on_handle_t h)
 
void wc_datasync_off_path (wc_context_t *ctx, char *path)
 
void wc_datasync_off_path_type (wc_context_t *ctx, char *path, enum on_event_type type)