Changeset 653:34373acfbc6a in freeDiameter for extensions/_sample
- Timestamp:
- Jan 11, 2011, 12:18:09 PM (13 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- extensions/_sample
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/_sample/CMakeLists.txt
r313 r653 1 1 # The sample extension 2 PROJECT("Sample extension" C)2 PROJECT("Sample extension") 3 3 4 4 # Overwrite the debug level for the extension code if configured … … 12 12 13 13 # Compile as a module 14 FD_ADD_EXTENSION(dbg_sample sample.c fini.c)14 FD_ADD_EXTENSION(dbg_sample sample.c hello.cpp fini.c) 15 15 16 16 -
extensions/_sample/sample.c
r10 r653 36 36 /* Sample extension to test extensions mechanism in freeDiameter */ 37 37 #include <freeDiameter/extension.h> 38 39 /* from sample.cpp */ 40 void mycppfunc(); 38 41 39 42 static int sample_main(char * conffile); … … 86 89 TRACE_DEBUG(INFO, "'Example-AVP' created without error\n"); 87 90 91 /* Call the c++ function */ 92 mycppfunc(); 93 88 94 /* The initialization function returns an error code with the standard POSIX meaning (ENOMEM, and so on) */ 89 95 return 0;
Note: See TracChangeset
for help on using the changeset viewer.