Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion apteryx.h
Original file line number Diff line number Diff line change
Expand Up @@ -618,17 +618,19 @@ bool apteryx_unwatch (const char *path, apteryx_watch_callback cb);

/**
* Callback function to be called when a watched tree changes.
* The callback function must call apteryx_free_tree on the passed in root tree.
* @param root pointer to the N-ary tree of nodes representing the changed data
* @return true on success
*/
typedef bool (*apteryx_watch_tree_callback) (GNode *root);

/**
* Watch for changes in the path and pass teh callback a tree of changes
* Watch for changes in the path and pass the callback a tree of changes
* Supports *(wildcard) at the end of path for all children under this path
* Supports /(level) at the end of path for children only under this current path (one level down)
* Whenever a change occurs in a monitor path, cb is called with the
* longest common path to all recent changes
* The callback function must call apteryx_free_tree on the passed in root tree.
* @param path path to the value to be monitored
* @param cb function to call when the value changes
* @param flags to change the watch behaviour
Expand Down