Navigation


Changeset 653:34373acfbc6a in freeDiameter for extensions/_sample/sample.c


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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.