UVES Pipeline Reference Manual  5.4.0
flames_obs_redchain.c
1 /* *
2  * This file is part of the ESO UVES Pipeline *
3  * Copyright (C) 2004,2005 European Southern Observatory *
4  * *
5  * This library 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 02110-1301 USA *
18  */
19 
20 /*
21  * $Author: jmlarsen $
22  * $Date: 2007-06-26 11:49:00 $
23  * $Revision: 1.1 $
24  * $Name: not supported by cvs2svn $
25  * $Log: not supported by cvs2svn $
26  * Revision 1.3 2007/06/06 08:17:33 amodigli
27  * replace tab with 4 spaces
28  *
29  * Revision 1.2 2006/10/26 14:01:55 jmlarsen
30  * Replaced hard-coded package name with PACKAGE_NAME
31  *
32  * Revision 1.1 2006/10/19 08:19:06 jmlarsen
33  * Added FLAMES flames_obs_redchain template
34  *
35  * Revision 1.5 2006/08/11 11:26:20 jmlarsen
36  * Added runtime check of UVES library version number
37  *
38  * Revision 1.4 2006/05/05 13:52:54 jmlarsen
39  * Added doxygen header, include config.h
40  *
41  * Revision 1.3 2006/04/24 09:17:19 jmlarsen
42  * Removed explicit uves_-prefix'
43  *
44  * Revision 1.2 2006/02/03 08:55:42 jmlarsen
45  * Removed stray doxygen marker
46  *
47  * Revision 1.1 2006/02/03 07:55:40 jmlarsen
48  * Added plugin template
49  *
50  * Revision 1.42 2006/01/19 08:47:24 jmlarsen
51  * Inserted missing doxygen end tag
52  *
53  * Revision 1.41 2005/12/19 16:17:55 jmlarsen
54  * Replaced bool -> int
55  *
56  */
57 
58 #ifdef HAVE_CONFIG_H
59 # include <config.h>
60 #endif
61 
62 /*----------------------------------------------------------------------------*/
66 /*----------------------------------------------------------------------------*/
67 
68 #include <flames.h>
69 #include <flames_utils.h>
70 #include <uves_utils.h>
71 
72 int cpl_plugin_get_info(cpl_pluginlist *list)
73 {
74  if (UVES_BINARY_VERSION != uves_get_version_binary())
75  {
76  cpl_msg_error(__func__,
77  "I am flames_obs_redchain version %d, but I am linking "
78  "against UVES library version %d. "
79  "This will not work. "
80  "Please remove all previous installations "
81  "of the " PACKAGE_NAME " and try again.",
82  UVES_BINARY_VERSION, uves_get_version_binary());
83  return 1;
84  }
85 
86  if (UVES_BINARY_VERSION != flames_get_version_binary())
87  {
88  cpl_msg_error(__func__,
89  "I am flames_obs_redchain version %d, but I am linking "
90  "against FLAMES library version %d. "
91  "This will not work. "
92  "Please remove all previous installations "
93  "of the " PACKAGE_NAME " and try again.",
94  UVES_BINARY_VERSION, flames_get_version_binary());
95  return 1;
96  }
97 
98  return flames_obs_redchain_get_info(list);
99 }