summaryrefslogtreecommitdiff
path: root/libgps.h
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-09-30 06:30:42 -0400
committerEric S. Raymond <esr@thyrsus.com>2011-09-30 06:30:42 -0400
commit34f69cc5d21caffe643a7faa9c045979a40cc792 (patch)
treeca21d9c3aa19c30b716c9253447c5e34f1b360e7 /libgps.h
parent82cd8cd019dec313938cba222871d32dbe5d449b (diff)
downloadgpsd-34f69cc5d21caffe643a7faa9c045979a40cc792.tar.gz
Magic-number elimination.
All three exports work.
Diffstat (limited to 'libgps.h')
-rw-r--r--libgps.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libgps.h b/libgps.h
index 91748e84..fb26ac2c 100644
--- a/libgps.h
+++ b/libgps.h
@@ -23,6 +23,9 @@ enum export_t {
#endif /* DBUS_EXPORT_ENABLE */
};
+/* values to poke in the gps_fd member if we get it via something special */
+#define SHM_PSEUDO_FD -1
+#define DBUS_PSEUDO_FD -2
extern int gps_sock_open(/*@null@*/const char *, /*@null@*/const char *,
/*@out@*/struct gps_data_t *);