diff options
author | cnlohr <lohr85@gmail.com> | 2016-11-30 22:05:43 -0500 |
---|---|---|
committer | cnlohr <lohr85@gmail.com> | 2016-11-30 22:05:43 -0500 |
commit | 8b77db6280c6d832eb89455e1b30877454a9a5a1 (patch) | |
tree | a192a404d5596caf04915170c33cc6e598a55b65 /src/survive.c | |
parent | c1542a78999791d9fefc6e0d2805494eb1d1bd44 (diff) | |
download | libsurvive-8b77db6280c6d832eb89455e1b30877454a9a5a1.tar.gz libsurvive-8b77db6280c6d832eb89455e1b30877454a9a5a1.tar.bz2 |
Starting to get data.
Diffstat (limited to 'src/survive.c')
-rw-r--r-- | src/survive.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/survive.c b/src/survive.c index a6a8b9e..6fa6fb3 100644 --- a/src/survive.c +++ b/src/survive.c @@ -3,11 +3,12 @@ #include <stdio.h> #include <stdlib.h> -struct SurviveContext * survive_init( void(*ff)( struct SurviveContext * ctx, const char * fault ) ) +struct SurviveContext * survive_init( void(*ff)( struct SurviveContext * ctx, const char * fault ), void(*notefunction)( struct SurviveContext * ctx, const char * note ) ) { int r = 0; struct SurviveContext * ret = calloc( 1, sizeof( struct SurviveContext ) ); ret->faultfunction = ff; + ret->notefunction = notefunction; if( r = survive_usb_init( ret ) ) { return 0; |