object_cfg.c

00001 
00002 /*---------------------------------------------------------------------------
00003    
00004    File name    :   object_cfg.c
00005    Author   :       Juergen Schreiber
00006    Created on   :   April 2002
00007    Description  :   configuration handling tools for the creation of an object
00008                         data cube
00009 
00010  *--------------------------------------------------------------------------*/
00011 
00012 /*---------------------------------------------------------------------------
00013                                 Includes
00014  ---------------------------------------------------------------------------*/
00015 
00016 #include "object_cfg.h"
00017 
00018 
00019 /*---------------------------------------------------------------------------
00020                             Function codes
00021  ---------------------------------------------------------------------------*/
00022 
00023 /*---------------------------------------------------------------------------
00024    Function :   object_cfg_create()
00025    In       :   void
00026    Out      :   pointer to allocated base object_config structure
00027    Job      :   allocate memory for an object_config struct
00028    Notice   :   only the main (base) structure is allocated
00029  ---------------------------------------------------------------------------*/
00030 
00031 object_config * object_cfg_create(void)
00032 {
00033     return calloc(1, sizeof(object_config));
00034 }
00035 
00036 
00037 /*---------------------------------------------------------------------------
00038    Function :   object_cfg_destroy()
00039    In       :   object_config to deallocate
00040    Out      :   void
00041    Job      :   deallocate all memory associated with an object_config data structure
00042    Notice   :   
00043  ---------------------------------------------------------------------------*/
00044 
00045 void object_cfg_destroy(object_config * cc)
00046 {
00047     if (cc==NULL) return ;
00048 
00049     /* Free main struct */
00050     free(cc);
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