1 /* 2 Gpredict: Real-time satellite tracking and orbit prediction program 3 4 Copyright (C) 2001-2009 Alexandru Csete. 5 6 Authors: Alexandru Csete <oz9aec@gmail.com> 7 8 Comments, questions and bugreports should be submitted via 9 http://sourceforge.net/projects/gpredict/ 10 More details can be found at the project home page: 11 12 http://gpredict.oz9aec.net/ 13 14 This program is free software; you can redistribute it and/or modify 15 it under the terms of the GNU General Public License as published by 16 the Free Software Foundation; either version 2 of the License, or 17 (at your option) any later version. 18 19 This program is distributed in the hope that it will be useful, 20 but WITHOUT ANY WARRANTY; without even the implied warranty of 21 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 GNU General Public License for more details. 23 24 You should have received a copy of the GNU General Public License 25 along with this program; if not, visit http://www.fsf.org/ 26 */ 27 #ifndef TRSP_CONF_H 28 #define TRSP_CONF_H 1 29 30 #include <glib.h> 31 32 /* NOTE For beacons uplow=uphigh=0 and downlow=downhigh */ 33 typedef struct { 34 gchar *name; /*!< The name of the transponder (same as config group) */ 35 gint64 uplow; /*!< Lower limit of uplink. */ 36 gint64 uphigh; /*!< Upper limit of uplink. */ 37 gint64 downlow; /*!< Lower limit of downlink. */ 38 gint64 downhigh; /*!< Upper limit of donlink. */ 39 gdouble baud; /*!< Baud rate > */ 40 gboolean invert; /*!< Flag indicating whether transponder is inverting. */ 41 gchar *mode; /*!< Mode descriptor. */ 42 } trsp_t; 43 44 /* The actual data would then be a singly linked list with pointers to transponder_t structures */ 45 46 GSList *read_transponders(guint catnum); 47 void write_transponders(guint catnum, GSList * trsplist); 48 void free_transponders(GSList * trsplist); 49 50 #endif 51