Navigation


Changeset 14:14cf6daf716d in freeDiameter for libfreeDiameter/dispatch.c


Ignore:
Timestamp:
Oct 1, 2009, 6:24:07 PM (15 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Some progress on peers module

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libfreeDiameter/dispatch.c

    r7 r14  
    4444
    4545/* List of all registered handlers -- useful if we want to cleanup properly at some point... */
    46 static struct fd_list all_handlers;
     46static struct fd_list all_handlers = FD_LIST_INITIALIZER( all_handlers );
    4747
    4848/* List of handlers registered for DISP_HOW_ANY. Other handlers are stored in the dictionary */
    49 static struct fd_list any_handlers;
     49static struct fd_list any_handlers = FD_LIST_INITIALIZER( any_handlers );
    5050
    5151/* The structure to store a callback */
     
    6464
    6565/**************************************************************************************/
    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 }
    7466
    7567/* 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.