Navigation


Changeset 658:f198d16fa7f4 in freeDiameter for include/freeDiameter/libfdproto.h


Ignore:
Timestamp:
Jan 14, 2011, 3:15:23 PM (13 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Initial commit for 1.1.0:

  • Restructuring:
    • libfreeDiameter:
      • renamed folder & binary into libfdproto
      • renamed libfD.h into fdproto-internal.h
      • removed signals management (replaced by triggers in libfdcore)
  • freeDiameter split into:
    • libfdcore (most contents)
      • renamed fD.h into fdcore-internal.h
      • added core.c for framework init/shutdown.
      • new triggers mechanism in events.c.
  • freeDiameterd (main, command line parsing, signals management)
  • tests:
    • now in top-level directory tests.
  • other changes:
    • fd_dict_new now returns 0 on duplicate identical entries.
    • fixes in dict_legacy_xml
    • fixes in some dictionaries
    • moved FD_DEFAULT_CONF_FILENAME definition to freeDiameter-host.h
File:
1 moved

Legend:

Unmodified
Added
Removed
  • include/freeDiameter/libfdproto.h

    r653 r658  
    5454 */
    5555
    56 #ifndef _LIBFREEDIAMETER_H
    57 #define _LIBFREEDIAMETER_H
     56#ifndef _LIBFDPROTO_H
     57#define _LIBFDPROTO_H
    5858
    5959#ifndef FD_IS_CONFIG
     
    8383
    8484/* 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);
     85int fd_libproto_init(void); /* note if you are using libfdcore, it handles this already */
    8886
    8987/* Call this one when the application terminates, to destroy internal threads */
    90 void fd_lib_fini(void);
     88void fd_libproto_fini(void);
    9189
    9290
     
    633631}
    634632
    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 
    653633
    654634/*============================================================*/
     
    28122792void fd_fifo_dump(int level, char * name, struct fifo * queue, void (*dump_item)(int level, void * item));
    28132793
    2814 #endif /* _LIBFREEDIAMETER_H */
     2794#endif /* _LIBFDPROTO_H */
Note: See TracChangeset for help on using the changeset viewer.