/simpletypesystem/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/simpletypesystem/trunk

« back to all changes in this revision

Viewing changes to src/GlobalNotify.h

  • Committer: Gustav Hartvigsson
  • Date: 2015-04-10 21:36:10 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20150410213610-r1q96ym4nmulpax9
* Added a few skeletal functions to Callback.h
* Re-wrote parts of SDynamicArray to be more sane.
  * removed s_dynamic_array_len() and s_dynamic_array_add()
  * added s_dynamic_array_set() and s_dynamic_array_last_item()
  * use calloc instead of malloc.
* added unsubscribe function to SGlobalNotify.
* Added decumentation in Interface.h
* Made s_dbg_print() more helpful.

-- Testing --
* Made test_case() macro more useful.
* added tests for the dynamic array.

Show diffs side-by-side

added added

removed removed

Lines of Context:
92
92
 *
93
93
 * @note
94
94
 * A notify Callback has to have the following signature:
95
 
 * <code> void my_callback (char * name, spointer user_data) </code>
 
95
 * <tt> void my_callback (char * name, spointer user_data) </tt>
96
96
 */
97
97
int s_global_notify_subscribe (char * name, Callback callback);
98
98
 
 
99
/**
 
100
 * Unsubscribe to a notify.
 
101
 * 
 
102
 * @param name The name of the notify to unsubscribe to.
 
103
 * @param subscription_id The ID of the subscription. 
 
104
 */
 
105
sboolean s_global_notify_unsubscribe (char * name, int subscription_id);
 
106
 
99
107
/** @} */
100
108
 
101
109
END_DECLS