Enlightenment CVS committal Author : dj2 Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/lib Modified Files: ewl_callback.c Log Message: - formatting =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_callback.c,v retrieving revision 1.5 retrieving revision 1.6 diff -u -3 -r1.5 -r1.6 --- ewl_callback.c 16 Sep 2005 19:10:25 -0000 1.5 +++ ewl_callback.c 12 Oct 2005 04:28:19 -0000 1.6 @@ -49,7 +49,8 @@ * So using an array for the callbacks saves us about 2MB of memory in this * case. */ -void ewl_callbacks_init() +void +ewl_callbacks_init() { cb_registration = ecore_hash_new(ewl_callback_hash, ewl_callback_compare); @@ -62,7 +63,8 @@ * Destroys some important variables for tracking callbacks that allow shared * callbacks. */ -void ewl_callbacks_shutdown() +void +ewl_callbacks_shutdown() { ecore_hash_destroy(cb_registration); } @@ -76,7 +78,8 @@ * but this can not be counted on. The callback @cb will be freed if this is * not the case. */ -static Ewl_Callback *ewl_callback_register(Ewl_Callback * cb) +static Ewl_Callback * +ewl_callback_register(Ewl_Callback * cb) { Ewl_Callback *found; @@ -103,7 +106,8 @@ * Returns no value. Checks to see if @cb has nay remaining references, if not * it is removed from the registration system and freed. */ -static void ewl_callback_unregister(Ewl_Callback * cb) +static void +ewl_callback_unregister(Ewl_Callback * cb) { DENTER_FUNCTION(DLEVEL_STABLE); DCHECK_PARAM_PTR("cb", cb); @@ -349,7 +353,8 @@ * * Executes the callback chain for the specified widget @a w, with event @a t. */ -void ewl_callback_call(Ewl_Widget * w, Ewl_Callback_Type t) +void +ewl_callback_call(Ewl_Widget * w, Ewl_Callback_Type t) { DENTER_FUNCTION(DLEVEL_STABLE); @@ -435,7 +440,8 @@ * * Delete all callbacks of type @a t from widget @a w. */ -void ewl_callback_del_type(Ewl_Widget * w, Ewl_Callback_Type t) +void +ewl_callback_del_type(Ewl_Widget * w, Ewl_Callback_Type t) { DENTER_FUNCTION(DLEVEL_STABLE); DCHECK_PARAM_PTR("w", w); @@ -458,7 +464,8 @@ * * Delete the specified callback id from the widget @a w. */ -void ewl_callback_del_cb_id(Ewl_Widget * w, Ewl_Callback_Type t, int cb_id) +void +ewl_callback_del_cb_id(Ewl_Widget * w, Ewl_Callback_Type t, int cb_id) { Ewl_Callback *cb; int i; @@ -489,7 +496,8 @@ * * Removes and frees all callbacks associated with widget @a w. */ -void ewl_callback_clear(Ewl_Widget * w) +void +ewl_callback_clear(Ewl_Widget * w) { int i; @@ -575,7 +583,8 @@ /* * Hashes the value of a callback based on it's type, function, and user data. */ -static unsigned int ewl_callback_hash(void *key) +static unsigned int +ewl_callback_hash(void *key) { Ewl_Callback *cb; @@ -592,7 +601,8 @@ * Simple comparison of callbacks, always returns -1 unless there is an exact * match, in which case it returns 0. */ -static int ewl_callback_compare(void *key1, void *key2) +static int +ewl_callback_compare(void *key1, void *key2) { Ewl_Callback *cb1; Ewl_Callback *cb2; ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs