Navigation


Changeset 1159:05f74dc19c49 in freeDiameter for include/freeDiameter/libfdcore.h


Ignore:
Timestamp:
May 31, 2013, 12:20:27 PM (11 years ago)
Author:
Sebastien Decugis <sdecugis@freediameter.net>
Branch:
default
Phase:
public
Message:

Include source rev number in version information when available

File:
1 edited

Legend:

Unmodified
Added
Removed
  • include/freeDiameter/libfdcore.h

    r1155 r1159  
    6161                CHECK_PRELUDE(__call__);                                                                \
    6262                if (__ret__ < 0) {                                                                      \
    63                         __ret__ = errno;                                                                \
    64                         LOG(faillevel, "ERROR: in '%s' :\t%s",  #__call__ ,  gnutls_strerror(__ret__)); \
     63                        LOG(faillevel, "TLS ERROR: in '%s' :\t%s",  #__call__ ,  gnutls_strerror(__ret__)); \
    6564                        __fallback__;                                                                   \
    6665                }                                                                                       \
     
    7675#ifndef EXCLUDE_DEPRECATED
    7776/* Macro for transition, replace with CHECK_GNUTLS_GEN */
    78 #define CHECK_GNUTLS_DO( __call__, __fallback__ ) {                                                     \
    79                 CHECK_PRELUDE(__call__);                                                                \
    80                 if (__ret__ < 0) {                                                                      \
    81                         __ret__ = errno;                                                                \
    82                         TRACE_ERROR("ERROR: in '%s' :\t%s",  #__call__ ,  gnutls_strerror(__ret__));    \
    83                         __fallback__;                                                                   \
    84                 }                                                                                       \
    85 }
     77#define CHECK_GNUTLS_DO( __call__, __fallback__ )       \
     78        CHECK_GNUTLS_GEN( FD_LOG_ERROR, __call__, __fallback__  )
    8679
    8780#endif /* EXCLUDE_DEPRECATED */
     
    9689int fd_core_initialize(void);
    9790
    98 /* Return a string describing the version of the library */
    99 const char *fd_core_version(void);
     91/* A string describing the version of the library */
     92extern const char fd_core_version[];
    10093
    10194/* Parse the freeDiameter.conf configuration file, load the extensions */
Note: See TracChangeset for help on using the changeset viewer.