1 /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ 2 /* 3 Gpredict: Real-time satellite tracking and orbit prediction program 4 5 Copyright (C) 2001-2009 Alexandru Csete. 6 7 Authors: Alexandru Csete <oz9aec@gmail.com> 8 9 Comments, questions and bugreports should be submitted via 10 http://sourceforge.net/projects/gpredict/ 11 More details can be found at the project home page: 12 13 http://gpredict.oz9aec.net/ 14 15 This program is free software; you can redistribute it and/or modify 16 it under the terms of the GNU General Public License as published by 17 the Free Software Foundation; either version 2 of the License, or 18 (at your option) any later version. 19 20 This program is distributed in the hope that it will be useful, 21 but WITHOUT ANY WARRANTY; without even the implied warranty of 22 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 23 GNU General Public License for more details. 24 25 You should have received a copy of the GNU General Public License 26 along with this program; if not, visit http://www.fsf.org/ 27 28 29 */ 30 #ifndef ROTOR_CONF_H 31 #define ROTOR_CONF_H 1 32 33 #include <glib.h> 34 35 36 typedef enum { 37 ROT_AZ_TYPE_360 = 0, /*!< Azimuth in range 0..360 */ 38 ROT_AZ_TYPE_180 = 1 /*!< Azimuth in range -180..+180 */ 39 } rot_az_type_t; 40 41 /** \brief Rotator configuration. */ 42 typedef struct { 43 gchar *name; /*!< Configuration file name, less .rot */ 44 gchar *host; /*!< hostname */ 45 gint port; /*!< port number */ 46 rot_az_type_t aztype; /*!< Az type */ 47 gdouble minaz; /*!< Lower azimuth limit */ 48 gdouble maxaz; /*!< Upper azimuth limit */ 49 gdouble minel; /*!< Lower elevation limit */ 50 gdouble maxel; /*!< Upper elevation limit */ 51 gdouble azstoppos; /*!< absolute position of rotation stops; 52 * will normally be equal to minaz */ 53 } rotor_conf_t; 54 55 56 gboolean rotor_conf_read(rotor_conf_t * conf); 57 void rotor_conf_save(rotor_conf_t * conf); 58 59 #endif 60