register.h

00001 /*
00002  *  Hamlib Interface - plugin registration
00003  *  Copyright (c) 2003-2005 by Stephane Fillod
00004  *
00005  *      $Id: register.h,v 1.5 2005/04/03 12:27:16 fillods Exp $
00006  *
00007  *   This library is free software; you can redistribute it and/or modify
00008  *   it under the terms of the GNU Library General Public License as
00009  *   published by the Free Software Foundation; either version 2 of
00010  *   the License, or (at your option) any later version.
00011  *
00012  *   This program is distributed in the hope that it will be useful,
00013  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015  *   GNU Library General Public License for more details.
00016  *
00017  *   You should have received a copy of the GNU Library General Public
00018  *   License along with this library; if not, write to the Free Software
00019  *   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00020  *
00021  */
00022 #ifndef _REGISTER_H
00023 #define _REGISTER_H 1
00024 
00025 
00026 #include <hamlib/rig.h>
00027 #include <hamlib/rotator.h>
00028 
00029 #ifdef __cplusplus
00030 #define EXTERN_C extern "C"
00031 #else
00032 #define EXTERN_C extern
00033 #endif
00034 
00035 #ifdef DECLARE_INITRIG_BACKEND
00036 #undef DECLARE_INITRIG_BACKEND
00037 #endif
00038 #define DECLARE_INITRIG_BACKEND(backend) EXTERN_C BACKEND_EXPORT(int) initrigs2_##backend(void *be_handle)
00039 
00040 #ifdef DECLARE_PROBERIG_BACKEND
00041 #undef DECLARE_PROBERIG_BACKEND
00042 #endif
00043 #define DECLARE_PROBERIG_BACKEND(backend) EXTERN_C BACKEND_EXPORT(rig_model_t) probeallrigs2_##backend(hamlib_port_t *port, rig_probe_func_t cfunc, rig_ptr_t data)
00044 
00045 #ifdef DECLARE_INITROT_BACKEND
00046 #undef DECLARE_INITROT_BACKEND
00047 #endif
00048 #define DECLARE_INITROT_BACKEND(backend) EXTERN_C BACKEND_EXPORT(int) initrots2_##backend(void *be_handle)
00049 
00050 #ifdef DECLARE_PROBEROT_BACKEND
00051 #undef DECLARE_PROBEROT_BACKEND
00052 #endif
00053 #define DECLARE_PROBEROT_BACKEND(backend) EXTERN_C BACKEND_EXPORT(rot_model_t) probeallrots2_##backend(hamlib_port_t *port, rig_probe_func_t cfunc, rig_ptr_t data)
00054 
00055 #endif  /* _REGISTER_H */

Generated on Tue Dec 4 01:14:33 2007 for Hamlib by  doxygen 1.5.4