summaryrefslogtreecommitdiff
path: root/gpspacket.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2013-11-28 00:36:48 -0500
committerEric S. Raymond <esr@thyrsus.com>2013-11-28 00:36:48 -0500
commit90f6ddf9acba1abd3dc91a0920238be65d45f946 (patch)
treeffd9e5325e6ed8824df814996fc73690078a9238 /gpspacket.c
parent39aad6c8ad31d1c76383103079009dcf65492aaa (diff)
downloadgpsd-90f6ddf9acba1abd3dc91a0920238be65d45f946.tar.gz
Restore some Python constants needed for gpscat to work.
Diffstat (limited to 'gpspacket.c')
-rw-r--r--gpspacket.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/gpspacket.c b/gpspacket.c
index 1ce12dc1..cb851404 100644
--- a/gpspacket.c
+++ b/gpspacket.c
@@ -273,4 +273,15 @@ initpacket(void)
PyModule_AddIntConstant(m, "RTCM2_PACKET", RTCM2_PACKET);
PyModule_AddIntConstant(m, "RTCM3_PACKET", RTCM3_PACKET);
PyModule_AddIntConstant(m, "JSON_PACKET", JSON_PACKET);
+
+ PyModule_AddIntConstant(m, "LOG_ERROR", LOG_ERROR);
+ PyModule_AddIntConstant(m, "LOG_SHOUT", LOG_SHOUT);
+ PyModule_AddIntConstant(m, "LOG_WARN", LOG_WARN);
+ PyModule_AddIntConstant(m, "LOG_CLIENT", LOG_CLIENT);
+ PyModule_AddIntConstant(m, "LOG_INF", LOG_INF);
+ PyModule_AddIntConstant(m, "LOG_PROG", LOG_PROG);
+ PyModule_AddIntConstant(m, "LOG_IO", LOG_IO);
+ PyModule_AddIntConstant(m, "LOG_DATA", LOG_DATA);
+ PyModule_AddIntConstant(m, "LOG_SPIN", LOG_SPIN);
+ PyModule_AddIntConstant(m, "LOG_RAW", LOG_RAW);
}