ns_cfg.c

00001 
00002 /*---------------------------------------------------------------------------
00003    
00004    File name    :   ns_cfg.c
00005    Author   :       Juergen Schreiber
00006    Created on   :   November 2001
00007    Description  :   configuration handling tools for the north-south test
00008 
00009  *--------------------------------------------------------------------------*/
00010 
00011 /*---------------------------------------------------------------------------
00012                                 Includes
00013  ---------------------------------------------------------------------------*/
00014 
00015 #include "ns_cfg.h"
00016 
00017 /*---------------------------------------------------------------------------
00018                             Function codes
00019  ---------------------------------------------------------------------------*/
00020 
00021 /*---------------------------------------------------------------------------
00022    Function :   ns_cfg_create()
00023    In       :   void
00024    Out      :   pointer to allocated base ns_config structure
00025    Job      :   allocate memory for a ns_config struct
00026    Notice   :   only the main (base) structure is allocated
00027  ---------------------------------------------------------------------------*/
00028 
00029 ns_config * ns_cfg_create(void)
00030 {
00031     return calloc(1, sizeof(ns_config));
00032 }
00033 
00034 
00035 /*---------------------------------------------------------------------------
00036    Function :   ns_cfg_destroy()
00037    In       :   ns_config to deallocate
00038    Out      :   void
00039    Job      :   deallocate all memory associated with a ns_config data structure
00040    Notice   :   
00041  ---------------------------------------------------------------------------*/
00042 
00043 void ns_cfg_destroy(ns_config * nc)
00044 {
00045     if (nc==NULL) return ;
00046 
00047     /*free(nc->frametype);*/
00048 
00049     /* Free main struct */
00050     free(nc);
00051 
00052     return ;
00053 }
00054 
00055 
00056 
00057 

Generated on Wed Oct 26 13:08:53 2005 for SINFONI Pipeline Reference Manual by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001