From 684b109e8cd3246c93fdec3e63157bbd11bb359a Mon Sep 17 00:00:00 2001 From: cnlohr Date: Sat, 3 Dec 2016 18:02:20 -0500 Subject: first stab at trying to pull off config data, didn't work. --- src/survive_internal.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/survive_internal.h') 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 #include #include +#include #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 -- cgit v1.2.3