00001
00002 /*---------------------------------------------------------------------------
00003
00004 File name : tilt_cfg.c
00005 Autor : Juergen Schreiber
00006 Created on : October 2001
00007 Description : handles the data structure tilt_config
00008
00009 *--------------------------------------------------------------------------*/
00010
00011 /*---------------------------------------------------------------------------
00012 Includes
00013 ---------------------------------------------------------------------------*/
00014
00015 #include "tilt_cfg.h"
00016
00017 /*---------------------------------------------------------------------------
00018 Function codes
00019 ---------------------------------------------------------------------------*/
00020
00021 /*---------------------------------------------------------------------------
00022 Function : tilt_cfg_create()
00023 In : void
00024 Out : pointer to allocated base tilt_config structure
00025 Job : allocate memory for a tilt_config struct
00026 Notice : only the main (base) structure is allocated
00027 ---------------------------------------------------------------------------*/
00028
00029 tilt_config * tilt_cfg_create(void)
00030 {
00031 return calloc(1, sizeof(tilt_config));
00032 }
00033
00034
00035 /*---------------------------------------------------------------------------
00036 Function : tilt_cfg_destroy()
00037 In : tilt_config to deallocate
00038 Out : void
00039 Job : deallocate all memory associated with a tilt_config data structure
00040 Notice :
00041 ---------------------------------------------------------------------------*/
00042
00043 void tilt_cfg_destroy(tilt_config * sc)
00044 {
00045 if (sc==NULL) return ;
00046 /* free(sc->frametype);*/
00047
00048 /* Free main struct */
00049 free(sc);
00050
00051 return ;
00052 }
00053
00054
00055
00056
1.2.13.1 written by Dimitri van Heesch,
© 1997-2001