diff options
author | cnlohr <lohr85@gmail.com> | 2016-12-03 18:02:20 -0500 |
---|---|---|
committer | cnlohr <lohr85@gmail.com> | 2016-12-03 18:02:20 -0500 |
commit | 684b109e8cd3246c93fdec3e63157bbd11bb359a (patch) | |
tree | 22bb039638bda9a6329615db9e2bd01162ab9b8e /src/survive_internal.h | |
parent | 00f9c8d9a66ffad686bd09041894ba6c25264665 (diff) | |
download | libsurvive-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.h | 7 |
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 |