Navigation


Changeset 653:34373acfbc6a in freeDiameter for extensions/_sample


Ignore:
Timestamp:
Jan 11, 2011, 12:18:09 PM (13 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Added sample C++ file in _sample extension

Location:
extensions/_sample
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/_sample/CMakeLists.txt

    r313 r653  
    11# The sample extension
    2 PROJECT("Sample extension" C)
     2PROJECT("Sample extension")
    33
    44# Overwrite the debug level for the extension code if configured
     
    1212
    1313# Compile as a module
    14 FD_ADD_EXTENSION(dbg_sample sample.c fini.c)
     14FD_ADD_EXTENSION(dbg_sample sample.c hello.cpp fini.c)
    1515
    1616
  • extensions/_sample/sample.c

    r10 r653  
    3636/* Sample extension to test extensions mechanism in freeDiameter */
    3737#include <freeDiameter/extension.h>
     38
     39/* from sample.cpp */
     40void mycppfunc();
    3841
    3942static int sample_main(char * conffile);
     
    8689        TRACE_DEBUG(INFO, "'Example-AVP' created without error\n");
    8790       
     91        /* Call the c++ function */
     92        mycppfunc();
     93       
    8894        /* The initialization function returns an error code with the standard POSIX meaning (ENOMEM, and so on) */
    8995        return 0;
Note: See TracChangeset for help on using the changeset viewer.