summaryrefslogtreecommitdiff
path: root/src/gypsy-client.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gypsy-client.h')
-rw-r--r--src/gypsy-client.h48
1 files changed, 16 insertions, 32 deletions
diff --git a/src/gypsy-client.h b/src/gypsy-client.h
index bf5b4e4..7b5a556 100644
--- a/src/gypsy-client.h
+++ b/src/gypsy-client.h
@@ -7,49 +7,33 @@
*
* Author: Iain Holmes <iain@gnome.org>
* Copyright (C) 2007
+ *
+ * This program is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option) any later
+ * version.
+ *
+ * This program is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU General Public License along with
+ * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
+ * Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
*/
#ifndef __GYPSY_CLIENT_H__
#define __GYPSY_CLIENT_H__
#include <glib-object.h>
+#include "nmea.h"
G_BEGIN_DECLS
#define GYPSY_TYPE_CLIENT (gypsy_client_get_type ())
-/* NMEA only allows space for 12 strictly speaking, but some GPS devices send
- all of the satellites it can see. */
-#define MAX_SATELLITES 32
-
-typedef enum {
- POSITION_NONE = 0,
- POSITION_LATITUDE = 1 << 0,
- POSITION_LONGITUDE = 1 << 1,
- POSITION_ALTITUDE = 1 << 2
-} PositionFields;
-
-typedef enum {
- COURSE_NONE = 0,
- COURSE_SPEED = 1 << 0,
- COURSE_DIRECTION = 1 << 1,
- COURSE_CLIMB = 1 << 2
-} CourseFields;
-
-typedef enum {
- FIX_INVALID = 0,
- FIX_NONE,
- FIX_2D,
- FIX_3D
-} FixType;
-
-typedef enum {
- ACCURACY_NONE = 0,
- ACCURACY_POSITION = 1 << 0, /* 3D */
- ACCURACY_HORIZONAL = 1 << 1, /* 2D */
- ACCURACY_VERTICAL = 1 << 2, /* Altitude */
-} AccuracyFields;
-
typedef struct _GypsyClientSatellite {
int satellite_id;
gboolean in_use;