SINFONI Pipeline Reference Manual  2.5.2
sinfo_standstar_cfg.c
1 /*
2  * This file is part of the ESO SINFONI Pipeline
3  * Copyright (C) 2004,2005 European Southern Observatory
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, 51 Franklin St, Fifth Floor, Boston, MA 02111-1307 USA
18  */
19 
20 /*---------------------------------------------------------------------------
21 
22  File name : sinfo_standstar_cfg.c
23  Author : Juergen Schreiber
24  Created on : March 2002
25  Description : configuration handling tools for the
26  standard star data reduction
27 
28  *--------------------------------------------------------------------------*/
29 
30 #ifdef HAVE_CONFIG_H
31 # include <config.h>
32 #endif
33 
34 /*---------------------------------------------------------------------------
35  Includes
36  ---------------------------------------------------------------------------*/
37 
38 #include "sinfo_standstar_cfg.h"
39 
47 /*---------------------------------------------------------------------------
48  Function codes
49  ---------------------------------------------------------------------------*/
50 
51 /*---------------------------------------------------------------------------
52  @name sinfo_standstar_cfg_create()
53  @param void
54  @return pointer to allocated base standstar_config structure
55  @brief allocate memory for a standstar_config struct
56  @note only the main (base) structure is allocated
57  ---------------------------------------------------------------------------*/
58 
59 standstar_config *
60 sinfo_standstar_cfg_create(void)
61 {
62  return cpl_calloc(1, sizeof(standstar_config));
63 }
64 
65 /*---------------------------------------------------------------------------
66  @name sinfo_standstar_cfg_destroy()
67  @param cc standstar_config to deallocate
68  @return void
69  @brief deallocate all memory associated with a \
70  standstar_config data structure
71 
72  ---------------------------------------------------------------------------*/
73 
74 void
75 sinfo_standstar_cfg_destroy(standstar_config * cc)
76 {
77  if (cc == NULL )
78  return;
79 
80  /* Free main struct */
81  cpl_free(cc);
82 
83  return;
84 }
85