summaryrefslogtreecommitdiff
path: root/libgpsmm.h
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2005-05-26 03:31:10 +0000
committerEric S. Raymond <esr@thyrsus.com>2005-05-26 03:31:10 +0000
commitcfa56298e82f1a68f3f1e752fc26724cedd96b6a (patch)
tree811879f99f6075eb74e5b93de6ac9235d5ea2294 /libgpsmm.h
parent358bb84f5e6e0c4b31a3085c4690cd7c3e633d2c (diff)
downloadgpsd-cfa56298e82f1a68f3f1e752fc26724cedd96b6a.tar.gz
Change API so raw_hook takes a length argument; supports dumping binary packets.
Diffstat (limited to 'libgpsmm.h')
-rw-r--r--libgpsmm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgpsmm.h b/libgpsmm.h
index d3853407..b9069d83 100644
--- a/libgpsmm.h
+++ b/libgpsmm.h
@@ -28,7 +28,7 @@ class gpsmm {
struct gps_data_t* open(void); //open() with default values
struct gps_data_t* query(const char *request); //put a command to gpsd and return the updated struct
struct gps_data_t* poll(void); //block until gpsd returns new data, then return the updated struct
- int set_callback(void (*hook)(struct gps_data_t *sentence, char *buf, int level)); //set a callback funcition, called each time new data arrives
+ int set_callback(void (*hook)(struct gps_data_t *sentence, char *buf, int len, int level)); //set a callback funcition, called each time new data arrives
int del_callback(void); //delete the callback function
void clear_fix(void);