SINFONI Pipeline Reference Manual  2.5.2
sinfo_flat_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  File name : sinfo_flat_cfg.c
22  Author : Juergen Schreiber
23  Created on : March 2002
24  Description : prepare flatfield frames configuration handling tools
25  *--------------------------------------------------------------------------*/
26 #ifdef HAVE_CONFIG_H
27 # include <config.h>
28 #endif
29 /*---------------------------------------------------------------------------
30  Includes
31  ---------------------------------------------------------------------------*/
32 #include "sinfo_flat_cfg.h"
33 
41 /*---------------------------------------------------------------------------
42  Function codes
43  ---------------------------------------------------------------------------*/
51 flat_config *
52 sinfo_flat_cfg_create(void)
53 {
54  return cpl_calloc(1, sizeof(flat_config));
55 }
63 void
64 sinfo_flat_cfg_destroy(flat_config * sc)
65 {
66  if (sc == NULL )
67  return;
68 
69  /* Free list of frame types */
70  /*cpl_free(sc->frametype);*/
71  /* Free positions */
72  /*cpl_free(sc->frameposition);*/
73 
74  /* Free main struct */
75  cpl_free(sc);
76 
77  return;
78 }