Navigation


Changeset 9:fc7c18867cf7 in freeDiameter for extensions/_sample


Ignore:
Timestamp:
Sep 24, 2009, 2:01:48 PM (15 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

New extension mechanism committed

Location:
extensions/_sample
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/_sample/CMakeLists.txt

    r8 r9  
    33
    44# 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}" )
     5FD_ADD_EXTENSION(sample sample.c fini.c)
  • extensions/_sample/fini.c

    r8 r9  
    4040void fd_ext_fini(void)
    4141{
    42         log_debug("Extension is terminated... Bye!\n");
     42        fd_log_debug("Extension is terminated... Bye!\n");
    4343        return ;
    4444}
  • extensions/_sample/sample.c

    r8 r9  
    5656       
    5757        /* 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");
    5959        {
    6060                struct dict_object * origin_host_avp = NULL;
     
    7979                CHECK_FCT( fd_dict_new ( fd_g_config->g_dict, DICT_RULE, &rule_data, example_avp_avp, NULL ));
    8080        }
    81         log_debug("'Example-AVP' created without error\n");
     81        fd_log_debug("'Example-AVP' created without error\n");
    8282       
    8383        return 0;
Note: See TracChangeset for help on using the changeset viewer.