Changeset 9:fc7c18867cf7 in freeDiameter for extensions/_sample
- Timestamp:
- Sep 24, 2009, 2:01:48 PM (15 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- extensions/_sample
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/_sample/CMakeLists.txt
r8 r9 3 3 4 4 # Compile as a module 5 ADD_LIBRARY(sample MODULE sample.c fini.c) 6 7 # Comply to naming scheme 8 SET_TARGET_PROPERTIES(sample PROPERTIES PREFIX "${FD_EXT_PREFIX}" ) 9 SET_TARGET_PROPERTIES(sample PROPERTIES SUFFIX "${FD_EXT_SUFFIX}" ) 5 FD_ADD_EXTENSION(sample sample.c fini.c) -
extensions/_sample/fini.c
r8 r9 40 40 void fd_ext_fini(void) 41 41 { 42 log_debug("Extension is terminated... Bye!\n");42 fd_log_debug("Extension is terminated... Bye!\n"); 43 43 return ; 44 44 } -
extensions/_sample/sample.c
r8 r9 56 56 57 57 /* Use the dictionary for test */ 58 log_debug("Let's create that 'Example-AVP'...\n");58 fd_log_debug("Let's create that 'Example-AVP'...\n"); 59 59 { 60 60 struct dict_object * origin_host_avp = NULL; … … 79 79 CHECK_FCT( fd_dict_new ( fd_g_config->g_dict, DICT_RULE, &rule_data, example_avp_avp, NULL )); 80 80 } 81 log_debug("'Example-AVP' created without error\n");81 fd_log_debug("'Example-AVP' created without error\n"); 82 82 83 83 return 0;
Note: See TracChangeset
for help on using the changeset viewer.