Navigation


Changeset 1:bafb831ba688 in freeDiameter


Ignore:
Timestamp:
Aug 31, 2009, 11:31:10 AM (15 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Fix names to proper case for freeDiameter

Files:
3 edited
21 moved

Legend:

Unmodified
Added
Removed
  • CMakeLists.txt

    r0 r1  
    22
    33# Name of the project, and language
    4 PROJECT("FreeDiameter" C)
     4PROJECT("freeDiameter" C)
    55
    66# Some subfolders may have tests
     
    1919INCLUDE_DIRECTORIES(include)
    2020INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR}/include)
    21 SUBDIRS(include/freediameter)
     21SUBDIRS(include/freeDiameter)
    2222
    2323# some subfolders use yacc and lex parsers
     
    3434
    3535# Location for the source code
    36 SUBDIRS(libfreediameter)
    37 SUBDIRS(freediameter)
     36SUBDIRS(libfreeDiameter)
     37SUBDIRS(freeDiameter)
    3838
    3939# Do we build the extensions?
  • INSTALL

    r0 r1  
    1313make tests
    1414
    15 Note: instead of passing options on the command line, you can edit the CCmakeCache.txt file
    16 or use a CMake front-end (for example cmake-gui)
     15Note: instead of passing options on the command line, you can use a CMake front-end (for example cmake-gui)
     16or edit the CCmakeCache.txt file directly.
    1717
    18 Note that there are dependencies on some external tools that may not be enforced by the configure script.
     18Note that there are dependencies on external tools that may not be enforced by the configure script.
    1919On Ubuntu Intrepid, the following packages were required (aptitude install ...):
    2020 gcc make flex bison libsctp1 libsctp-dev cmake
     
    2828
    2929You can also configure which extensions to build with CMake:
    30 NoExtensions:BOOL=OFF    (or the following are ignored)
     30IGNORE_ALL_EXTENSIONS:BOOL=OFF    (or the following are ignored)
    3131BUILD_APP_TEST:BOOL=ON
    3232BUILD_RT_ANY:BOOL=ON
     
    3535BUILD_SAMPLE:BOOL=ON
    3636
    37 You can change the default configuration file name:
    38 DEFAULT_CONF_FILE:STRING=/path/to/some/freediameter.conf
     37You can change the default configuration file pathname:
     38DEFAULT_CONF_FILE:STRING=/path/to/some/freeDiameter.conf
    3939
  • README

    r0 r1  
    1 The FreeDiameter daemon implements the Diameter base protocol.
    2 Loadable extensions add the logic of Diameter applications or advanced use of the daemon.
     1The freeDiameter daemon implements the Diameter base protocol.
     2Loadable extensions add the logic of Diameter applications and advanced use of the daemon.
    33See http://aaa.koganei.wide.ad.jp/ for more information on the project.
    4 FreeDiameter was previously known as the "waaad" project (WIDE AAA Daemon)
     4freeDiameter was previously known as the "waaad" project (WIDE AAA Daemon)
    55
    6 This version is not related to the "freediameter" project from Sun, which seems abandoned.
     6This project is not related to the "freediameter" project from Sun on sourceforge.
    77
    88Author: Sebastien Decugis.
  • freeDiameter/CMakeLists.txt

    r0 r1  
    11# The subproject name
    2 Project("freediameterd" C)
     2Project("freeDiameterd" C)
    33
    44SET(PROJECT_VERSION 0.1)
     
    77# List of source files
    88SET(FD_COMMON_SRC
    9         fd.h
     9        fD.h
    1010        dict_base_proto.c
    1111        )
    1212
    1313# Building the executable
    14 ADD_EXECUTABLE(freediameterd ${FD_COMMON_SRC} main.c)
     14ADD_EXECUTABLE(freeDiameterd ${FD_COMMON_SRC} main.c)
    1515
    1616# The link command
    17 LINK_DIRECTORIES(${CURRENT_BINARY_DIR}/../libfreediameter)
    18 TARGET_LINK_LIBRARIES(freediameterd libfreediameter ${FD_LIBS})
     17LINK_DIRECTORIES(${CURRENT_BINARY_DIR}/../libfreeDiameter)
     18TARGET_LINK_LIBRARIES(freeDiameterd libfreeDiameter ${FD_LIBS})
    1919
    2020# The unary tests directory
  • freeDiameter/dict_base_proto.c

    r0 r1  
    3737 */
    3838
    39 #include "fd.h"
     39#include "fD.h"
    4040
    4141#include <netinet/in.h>
  • freeDiameter/fD.h

    r0 r1  
    3434*********************************************************************************************************/
    3535
    36 /* This file contains the definitions for internal use in the freediameter daemon */
     36/* This file contains the definitions for internal use in the freeDiameter daemon */
    3737
    3838#ifndef _FD_H
    3939#define _FD_H
    4040
    41 #include <freediameter/freediameter-host.h>
    42 #include <freediameter/freediameter.h>
     41#include <freeDiameter/freeDiameter-host.h>
     42#include <freeDiameter/freeDiameter.h>
    4343
    4444/* Create all the dictionary objects defined in the Diameter base RFC. */
  • freeDiameter/main.c

    r0 r1  
    3434*********************************************************************************************************/
    3535
    36 #include "fd.h"
     36#include "fD.h"
    3737
    3838/* Entry point */
     
    5454        fd_dict_dump(fd_g_dict);
    5555       
    56         TRACE_DEBUG(INFO, "FreeDiameter daemon initialized.");
     56        TRACE_DEBUG(INFO, "freeDiameter daemon initialized.");
    5757       
    5858        return 0;
  • freeDiameter/tests/CMakeLists.txt

    r0 r1  
    11# Test directory
    2 PROJECT("libfreediameter tests" C)
     2PROJECT("libfreeDiameter tests" C)
    33
    44# give the possibility to configure the timeout duration for the tests
     
    3535# ENDFOREACH(SRC_FILE)
    3636
    37 # Create an archive with the daemon common files
    38 ADD_LIBRARY(fdcore STATIC ${TEST_COMMON_SRC})
     37# Create an archive with the daemon common files (all but main)
     38ADD_LIBRARY(fDcore STATIC ${TEST_COMMON_SRC})
    3939
    4040
     
    4343FOREACH( TEST ${TEST_LIST} )
    4444   ADD_EXECUTABLE(${TEST} ${TEST}.c tests.h)
    45    TARGET_LINK_LIBRARIES(${TEST} libfreediameter fdcore ${FD_LIBS})
     45   TARGET_LINK_LIBRARIES(${TEST} libfreeDiameter fDcore ${FD_LIBS})
    4646   ADD_TEST(${TEST} ${EXECUTABLE_OUTPUT_PATH}/${TEST})
    4747ENDFOREACH( TEST )
  • freeDiameter/tests/testmq.c

    r0 r1  
    3636#include "tests.h"
    3737
    38 /* Structure for testing threashold function */
     38/* Structure for testing threshold function */
    3939static struct thrh_test {
    4040        struct mqueue * queue; /* pointer to the queue */
  • freeDiameter/tests/tests.h

    r0 r1  
    4242#define _TESTS_H
    4343
    44 #include "fd.h"
     44#include "fD.h"
    4545
    4646#include <pthread.h>
  • include/freeDiameter/CMakeLists.txt

    r0 r1  
    1 #CMake configuration for freediameter include directory
     1#CMake configuration for freeDiameter include directory
    22
    3 Project("FreeDiameter include directory" C)
     3Project("freeDiameter include directory" C)
    44
    55########################
     
    7474# The default configuration file name
    7575IF (NOT DEFAULT_CONF_FILE)
    76    SET(DEFAULT_CONF_FILE "freediameter.conf")
     76   SET(DEFAULT_CONF_FILE "freeDiameter.conf")
    7777ENDIF (NOT DEFAULT_CONF_FILE)
    7878##########################
    7979
    8080# Generate the host.h file
    81 CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/freediameter-host.h.in ${CMAKE_CURRENT_BINARY_DIR}/freediameter-host.h)
     81CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/freeDiameter-host.h.in ${CMAKE_CURRENT_BINARY_DIR}/freeDiameter-host.h)
    8282
    8383# Save the FD_LIBS for parent scope
  • include/freeDiameter/freeDiameter.h

    r0 r1  
    3838
    3939
    40 #include <freediameter/libfreediameter.h>
     40#include <freeDiameter/libfreeDiameter.h>
    4141
    4242
  • include/freeDiameter/libfreeDiameter.h

    r0 r1  
    3434*********************************************************************************************************/
    3535
    36 /* This file contains the definitions of functions and types used by the libfreediameter library.
    37  *
    38  * This library is meant to be used by both the freediameter daemon and its extensions.
     36/* This file contains the definitions of functions and types used by the libfreeDiameter library.
     37 *
     38 * This library is meant to be used by both the freeDiameter daemon and its extensions.
    3939 *
    4040 * It provides the tools to manipulate Diameter messages and related data.
    4141 *
    42  * This file should always be included as #include <freediameter/libfreediameter.h>
    43  * Note that this library does not store any state. The daemon must pass the pointer to
    44  * the dictionary and other global objects to all extensions that use the libfreediameter
    45  * library.
     42 * This file should always be included as #include <freeDiameter/libfreeDiameter.h>
    4643 */
    4744
     
    5047
    5148#ifndef FD_IS_CONFIG
    52 #error "You must include 'freediameter-host.h' before this file."
     49#error "You must include 'freeDiameter-host.h' before this file."
    5350#endif /* FD_IS_CONFIG */
    5451
  • libfreeDiameter/CMakeLists.txt

    r0 r1  
    11# Name of the subproject
    2 Project("libfreediameter" C)
     2Project("libfreeDiameter" C)
    33
    44SET(PROJECT_COPYRIGHT "Copyright (c) 2008-2009, WIDE Project (www.wide.ad.jp) and NICT (www.nict.go.jp)")
     
    66# List of source files for the library
    77SET(LFD_SRC
    8         libfd.h
     8        libfD.h
    99        init.c
    1010        log.c
     
    1616
    1717# Build as a shared library
    18 ADD_LIBRARY(libfreediameter SHARED ${LFD_SRC})
     18ADD_LIBRARY(libfreeDiameter SHARED ${LFD_SRC})
    1919
    2020# Avoid the liblib name
    21 SET_TARGET_PROPERTIES(libfreediameter PROPERTIES OUTPUT_NAME "freediameter")
     21SET_TARGET_PROPERTIES(libfreeDiameter PROPERTIES OUTPUT_NAME "freeDiameter")
    2222
    2323# The library itself needs other libraries
    24 TARGET_LINK_LIBRARIES(libfreediameter ${FD_LIBS})
     24TARGET_LINK_LIBRARIES(libfreeDiameter ${FD_LIBS})
    2525
  • libfreeDiameter/dictionary.c

    r0 r1  
    3434*********************************************************************************************************/
    3535
    36 #include "libfd.h"
     36#include "libfD.h"
    3737
    3838/* Names of the base types */
     
    12901290/*******************************************************************************************************/
    12911291
    1292 /* These are the functions exported outside libfreediameter. */
     1292/* These are the functions exported outside libfreeDiameter. */
    12931293
    12941294/* Get the data associated to an object */
  • libfreeDiameter/init.c

    r0 r1  
    3434*********************************************************************************************************/
    3535
    36 #include "libfd.h"
     36#include "libfD.h"
    3737
    3838int fd_lib_init(void)
     
    4343        ret = pthread_key_create(&fd_log_thname, free);
    4444        if (ret != 0) {
    45                 fprintf(stderr, "Error initializing the libfreediameter library: %s\n", strerror(ret) );
     45                fprintf(stderr, "Error initializing the libfreeDiameter library: %s\n", strerror(ret) );
    4646                return ret;
    4747        }
  • libfreeDiameter/libfD.h

    r0 r1  
    3434*********************************************************************************************************/
    3535
    36 /* This file contains the definitions for internal use in the libfreediameter library */
     36/* This file contains the definitions for internal use in the libfreeDiameter library */
    3737
    3838#ifndef _LIBFD_H
    3939#define _LIBFD_H
    4040
    41 #include <freediameter/freediameter-host.h>
    42 #include <freediameter/libfreediameter.h>
     41#include <freeDiameter/freeDiameter-host.h>
     42#include <freeDiameter/libfreeDiameter.h>
    4343
    4444/* Internal to the library */
     
    4747
    4848
    49 
    5049#endif /* _LIBFD_H */
  • libfreeDiameter/lists.c

    r0 r1  
    3434*********************************************************************************************************/
    3535
    36 #include "libfd.h"
     36#include "libfD.h"
    3737
    3838/* Initialize a list element */
  • libfreeDiameter/log.c

    r0 r1  
    3434*********************************************************************************************************/
    3535
    36 #include "libfd.h"
     36#include "libfD.h"
    3737
    3838#include <stdarg.h>
  • libfreeDiameter/messages.c

    r0 r1  
    3939 */
    4040
    41 #include "libfd.h"
     41#include "libfD.h"
    4242
    4343#include <sys/param.h>
  • libfreeDiameter/mqueues.c

    r0 r1  
    4646 */
    4747
    48 #include "libfd.h"
     48#include "libfD.h"
    4949
    5050/* Definition of a message queue object */
     
    5959        int             thrs;   /* number of threads waiting for a new message (when count is 0) */
    6060       
    61         uint16_t        high;   /* High level threshold (see libfreediameter.h for details) */
     61        uint16_t        high;   /* High level threshold (see libfreeDiameter.h for details) */
    6262        uint16_t        low;    /* Low level threshhold */
    6363        void            *data;  /* Opaque pointer for threshold callbacks */
Note: See TracChangeset for help on using the changeset viewer.