1 #ifndef __CALLBACKS_H__
2 #define __CALLBACKS_H__
10 /* Gets callback type (on start or on stop) and function pointer.
11 * Returns positive callback's handle that is used to unregister on success,
12 * negative error code otherwise.
13 * Exported function. */
14 int us_manager_reg_cb(enum callback_t cbt, void (*func)(void));
16 /* Gets handle and unregisters function with this handle.
17 * Exported function. */
18 void us_manager_unreg_cb(int handle);
20 /* Used to execute callbacks when start/stop is occuring. */
21 void exec_cbs(enum callback_t cbt);
23 /* Removes all callbacks */
24 void remove_all_cbs(void);
26 #endif /* __CALLBACKS_H__ */