diff options
author | cnlohr <lohr85@gmail.com> | 2016-12-20 22:44:10 -0500 |
---|---|---|
committer | cnlohr <lohr85@gmail.com> | 2016-12-20 22:44:10 -0500 |
commit | 093802f9cc7ebaa0bfe8d862766e7e08026576f0 (patch) | |
tree | 1336b7d27114f73b5c9f60a4f8b0850d40edf735 /src/survive.c | |
parent | bbb1ef6a917a3e0b94c8278b3c6643b523aad5c0 (diff) | |
download | libsurvive-093802f9cc7ebaa0bfe8d862766e7e08026576f0.tar.gz libsurvive-093802f9cc7ebaa0bfe8d862766e7e08026576f0.tar.bz2 |
switch to a hidden disambiguator.
Diffstat (limited to 'src/survive.c')
-rw-r--r-- | src/survive.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/survive.c b/src/survive.c index b12c4cc..73df29d 100644 --- a/src/survive.c +++ b/src/survive.c @@ -8,6 +8,7 @@ #include <jsmn.h> #include <string.h> #include <zlib.h> +#include "disambiguator.h" static int jsoneq(const char *json, jsmntok_t *tok, const char *s) { if (tok->type == JSMN_STRING && (int) strlen(s) == tok->end - tok->start && @@ -146,12 +147,15 @@ struct SurviveContext * survive_init() ctx->headset.ctx = ctx; memcpy( ctx->headset.codename, "HMD", 4 ); + ctx->headset.d = calloc( 1, sizeof( struct disambiguator ) ); ctx->watchman[0].ctx = ctx; memcpy( ctx->watchman[0].codename, "WM0", 4 ); + ctx->watchman[0].d = calloc( 1, sizeof( struct disambiguator ) ); ctx->watchman[1].ctx = ctx; memcpy( ctx->watchman[1].codename, "WM1", 4 ); + ctx->watchman[1].d = calloc( 1, sizeof( struct disambiguator ) ); //USB must happen last. if( r = survive_usb_init( ctx ) ) |