Navigation


Changeset 1159:05f74dc19c49 in freeDiameter for libfdcore/core.c


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
  • libfdcore/core.c

    r1142 r1159  
    166166/* Public interfaces */
    167167
    168 /* Return a string describing the version of the library */
    169 const char *fd_core_version(void)
    170 {
    171         return _stringize(FD_PROJECT_VERSION_MAJOR) "." _stringize(FD_PROJECT_VERSION_MINOR) "." _stringize(FD_PROJECT_VERSION_REV);
    172 }
    173 
    174168/* Initialize the libfdcore internals. This also initializes libfdproto */
    175169int fd_core_initialize(void)
     
    189183        }
    190184       
    191         LOG_N("libfdproto initialized.");
    192        
    193185        /* Name this thread */
    194186        fd_log_threadname("Main");
     187       
     188        LOG_N("libfdproto '%s' initialized.", fd_libproto_version);
    195189       
    196190        /* Initialize gcrypt and gnutls */
     
    227221        core_state_set(CORE_LIBS_INIT);
    228222       
     223        LOG_N("libfdcore '%s' initialized.", fd_core_version);
     224       
     225       
    229226        /* Next thing is to parse the config, leave this for a different function */
    230227        return 0;
Note: See TracChangeset for help on using the changeset viewer.