UVES Pipeline Reference Manual  5.5.5b2
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  *
26  */
27 
28 #ifdef HAVE_CONFIG_H
29 # include <config.h>
30 #endif
31 
32 /*----------------------------------------------------------------------------*/
36 /*----------------------------------------------------------------------------*/
37 
38 #include <flames.h>
39 #include <flames_utils.h>
40 #include <uves_utils.h>
41 
42 int cpl_plugin_get_info(cpl_pluginlist *list)
43 {
44  if (UVES_BINARY_VERSION != uves_get_version_binary())
45  {
46  cpl_msg_error(__func__,
47  "I am flames_obs_redchain version %d, but I am linking "
48  "against UVES library version %d. "
49  "This will not work. "
50  "Please remove all previous installations "
51  "of the " PACKAGE_NAME " and try again.",
52  UVES_BINARY_VERSION, uves_get_version_binary());
53  return 1;
54  }
55 
56  if (UVES_BINARY_VERSION != flames_get_version_binary())
57  {
58  cpl_msg_error(__func__,
59  "I am flames_obs_redchain version %d, but I am linking "
60  "against FLAMES library version %d. "
61  "This will not work. "
62  "Please remove all previous installations "
63  "of the " PACKAGE_NAME " and try again.",
64  UVES_BINARY_VERSION, flames_get_version_binary());
65  return 1;
66  }
67 
68  return flames_obs_redchain_get_info(list);
69 }
int cpl_plugin_get_info(cpl_pluginlist *list)
Build the list of available plugins, for this module.
int uves_get_version_binary(void)
Get UVES library binary version number.
Definition: uves_utils.c:1660