wavecal_cfg.c

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

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