void(* NContextValueChangeFunc)(NContext *context, const char *key, const NValue *old_value, const NValue *new_value, void *userdata)
Context value change callback function.
Definition context.h:31
struct _NContext NContext
Internal context structure.
Definition context.h:26
void n_context_unsubscribe_value_change(NContext *context, const char *key, NContextValueChangeFunc callback)
Unsubscribe value change callback.
int n_context_subscribe_value_change(NContext *context, const char *key, NContextValueChangeFunc callback, void *userdata)
Subscribe callback function to key in context structure.
void n_context_set_value(NContext *context, const char *key, NValue *value)
Change or add key/value pair to context.
const NValue * n_context_get_value(NContext *context, const char *key)
Get value by key from context.