Changeset 14:14cf6daf716d in freeDiameter for libfreeDiameter/dispatch.c
- Timestamp:
- Oct 1, 2009, 6:24:07 PM (15 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libfreeDiameter/dispatch.c
r7 r14 44 44 45 45 /* List of all registered handlers -- useful if we want to cleanup properly at some point... */ 46 static struct fd_list all_handlers ;46 static struct fd_list all_handlers = FD_LIST_INITIALIZER( all_handlers ); 47 47 48 48 /* List of handlers registered for DISP_HOW_ANY. Other handlers are stored in the dictionary */ 49 static struct fd_list any_handlers ;49 static struct fd_list any_handlers = FD_LIST_INITIALIZER( any_handlers ); 50 50 51 51 /* The structure to store a callback */ … … 64 64 65 65 /**************************************************************************************/ 66 /* Initialize the module lists */67 void fd_disp_init(void)68 {69 TRACE_ENTRY();70 fd_list_init(&all_handlers, NULL);71 fd_list_init(&any_handlers, NULL);72 /* if PTHREAD_RWLOCK_INITIALIZER is not supported on all platforms, we may initialize the lock here */73 }74 66 75 67 /* Call CBs from a given list (any_handlers if cb_list is NULL) -- must have locked fd_disp_lock before */
Note: See TracChangeset
for help on using the changeset viewer.