SINFONI Pipeline Reference Manual
2.5.2
sinfoni
sinfo_ns_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_ns_cfg.c
23
Author : Juergen Schreiber
24
Created on : November 2001
25
Description : configuration handling tools for the north-south test
26
27
*--------------------------------------------------------------------------*/
28
#ifdef HAVE_CONFIG_H
29
# include <config.h>
30
#endif
31
32
/*---------------------------------------------------------------------------
33
Includes
34
---------------------------------------------------------------------------*/
35
36
#include "sinfo_ns_cfg.h"
37
38
/*---------------------------------------------------------------------------
39
Function codes
40
---------------------------------------------------------------------------*/
48
/*---------------------------------------------------------------------------
49
Function : sinfo_ns_cfg_create()
50
In : void
51
Out : pointer to allocated base ns_config structure
52
Job : allocate memory for a ns_config struct
53
Notice : only the main (base) structure is allocated
54
---------------------------------------------------------------------------*/
55
56
ns_config *
57
sinfo_ns_cfg_create(
void
)
58
{
59
return
cpl_calloc(1,
sizeof
(ns_config));
60
}
61
62
/*---------------------------------------------------------------------------
63
Function : sinfo_ns_cfg_destroy()
64
In : ns_config to deallocate
65
Out : void
66
Job : deallocate all memory associated with a ns_config data structure
67
Notice :
68
---------------------------------------------------------------------------*/
69
70
void
71
sinfo_ns_cfg_destroy(ns_config * nc)
72
{
73
if
(nc == NULL )
74
return
;
75
76
/*cpl_free(nc->frametype);*/
77
78
/* Free main struct */
79
cpl_free(nc);
80
81
return
;
82
}
83
Generated by
1.8.1.1