Changeset 658:f198d16fa7f4 in freeDiameter for include/freeDiameter/libfdproto.h
- Timestamp:
- Jan 14, 2011, 3:15:23 PM (13 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
include/freeDiameter/libfdproto.h
r653 r658 54 54 */ 55 55 56 #ifndef _LIBF REEDIAMETER_H57 #define _LIBF REEDIAMETER_H56 #ifndef _LIBFDPROTO_H 57 #define _LIBFDPROTO_H 58 58 59 59 #ifndef FD_IS_CONFIG … … 83 83 84 84 /* This function must be called first, before any call to another library function */ 85 /* If the parameter is not 0, the support for signals (fd_sig_register) is enabled, otherwise it is disabled */ 86 /* The function must be called while the application is single-threaded to enable support for signals */ 87 int fd_lib_init(int support_signals); 85 int fd_libproto_init(void); /* note if you are using libfdcore, it handles this already */ 88 86 89 87 /* Call this one when the application terminates, to destroy internal threads */ 90 void fd_lib _fini(void);88 void fd_libproto_fini(void); 91 89 92 90 … … 633 631 } 634 632 635 /*============================================================*/636 /* SIGNALS */637 /*============================================================*/638 639 /* Register a new callback to be called on reception of a given signal (it receives the signal as parameter) */640 /* EALREADY will be returned if there is already a callback registered on this signal */641 /* NOTE: the signal handler will be called from a new detached thread */642 int fd_sig_register(int signal, char * modname, void (*callback)(int signal));643 644 /* Remove the handler for a given signal */645 int fd_sig_unregister(int signal);646 647 /* Dump list of handlers */648 void fd_sig_dump(int level, int indent);649 650 /* Name of signals */651 const char * fd_sig_abbrev(int signal);652 653 633 654 634 /*============================================================*/ … … 2812 2792 void fd_fifo_dump(int level, char * name, struct fifo * queue, void (*dump_item)(int level, void * item)); 2813 2793 2814 #endif /* _LIBF REEDIAMETER_H */2794 #endif /* _LIBFDPROTO_H */
Note: See TracChangeset
for help on using the changeset viewer.