UVES Pipeline Reference Manual  5.5.5b3
uves_response.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: amodigli $
22  * $Date: 2007-06-06 08:17:33 $
23  */
24 
25 #ifdef HAVE_CONFIG_H
26 # include <config.h>
27 #endif
28 
29 /*----------------------------------------------------------------------------*/
33 /*----------------------------------------------------------------------------*/
34 
35 #include <uves.h>
36 #include <uves_utils.h>
37 
38 int cpl_plugin_get_info(cpl_pluginlist *list)
39 {
40  if (UVES_BINARY_VERSION != uves_get_version_binary())
41  {
42  cpl_msg_error(__func__,
43  "I am uves_response version %d, but I am linking "
44  "against UVES library version %d. "
45  "This will not work. "
46  "Please remove all previous installations "
47  "of the " PACKAGE_NAME " and try again.",
48  UVES_BINARY_VERSION, uves_get_version_binary());
49  return 1;
50  }
51  return uves_response_get_info(list);
52 }
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