aboutsummaryrefslogtreecommitdiff
path: root/src/survive_internal.h
diff options
context:
space:
mode:
authorcnlohr <lohr85@gmail.com>2016-12-03 18:02:20 -0500
committercnlohr <lohr85@gmail.com>2016-12-03 18:02:20 -0500
commit684b109e8cd3246c93fdec3e63157bbd11bb359a (patch)
tree22bb039638bda9a6329615db9e2bd01162ab9b8e /src/survive_internal.h
parent00f9c8d9a66ffad686bd09041894ba6c25264665 (diff)
downloadlibsurvive-684b109e8cd3246c93fdec3e63157bbd11bb359a.tar.gz
libsurvive-684b109e8cd3246c93fdec3e63157bbd11bb359a.tar.bz2
first stab at trying to pull off config data, didn't work.
Diffstat (limited to 'src/survive_internal.h')
-rw-r--r--src/survive_internal.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/survive_internal.h b/src/survive_internal.h
index 8bb421d..8096b8c 100644
--- a/src/survive_internal.h
+++ b/src/survive_internal.h
@@ -18,6 +18,7 @@
#include <stdio.h>
#include <stdint.h>
#include <libusb-1.0/libusb.h>
+#include <zlib.h>
#define SV_INFO( x... ) { char stbuff[1024]; sprintf( stbuff, x ); ctx->notefunction( ctx, stbuff ); }
#define SV_ERROR( x... ) { char stbuff[1024]; sprintf( stbuff, x ); ctx->faultfunction( ctx, stbuff ); }
@@ -82,6 +83,7 @@ struct SurviveContext
struct libusb_device_handle * udev[MAX_USB_DEVS];
struct SurviveUSBInterface uiface[MAX_INTERFACES];
+
//Flood info, for calculating which laser is currently sweeping.
int8_t oldcode;
int32_t last_photo_time;
@@ -100,6 +102,7 @@ struct SurviveContext
void survive_usb_close( struct SurviveContext * t );
int survive_usb_init( struct SurviveContext * t );
int survive_usb_poll( struct SurviveContext * ctx );
+int survive_get_config( char ** config, struct SurviveContext * ctx, int devno, int interface );
//Accept Data from backend.
void survive_data_cb( struct SurviveUSBInterface * si );
@@ -109,6 +112,10 @@ void survive_light_process( struct SurviveObject * so, int sensor_id, int acode,
void survive_imu_process( struct SurviveObject * so, int16_t * accelgyro, uint32_t timecode, int id );
+//Util
+int survive_simple_inflate( struct SurviveContext * ctx, const char * input, int inlen, char * output, int outlen );
+
+
#endif