Changeset 1159:05f74dc19c49 in freeDiameter for libfdcore
- Timestamp:
- May 31, 2013, 12:20:27 PM (11 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- libfdcore
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
libfdcore/CMakeLists.txt
r1077 r1159 35 35 server.c 36 36 tcp.c 37 version.c 37 38 ) 38 39 … … 53 54 # Include path 54 55 INCLUDE_DIRECTORIES(${LFDCORE_INCLUDES}) 56 INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}) 55 57 56 58 # Build the executable 57 59 ADD_LIBRARY(libfdcore SHARED ${FDCORE_SRC} ${FDCORE_GEN_SRC}) 60 ADD_DEPENDENCIES(libfdcore version_information) 58 61 59 62 # Avoid the liblib name, and set the version -
libfdcore/core.c
r1142 r1159 166 166 /* Public interfaces */ 167 167 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 174 168 /* Initialize the libfdcore internals. This also initializes libfdproto */ 175 169 int fd_core_initialize(void) … … 189 183 } 190 184 191 LOG_N("libfdproto initialized.");192 193 185 /* Name this thread */ 194 186 fd_log_threadname("Main"); 187 188 LOG_N("libfdproto '%s' initialized.", fd_libproto_version); 195 189 196 190 /* Initialize gcrypt and gnutls */ … … 227 221 core_state_set(CORE_LIBS_INIT); 228 222 223 LOG_N("libfdcore '%s' initialized.", fd_core_version); 224 225 229 226 /* Next thing is to parse the config, leave this for a different function */ 230 227 return 0;
Note: See TracChangeset
for help on using the changeset viewer.