aboutsummaryrefslogtreecommitdiff
path: root/include/libsurvive/survive.h
diff options
context:
space:
mode:
authorJustin Berger <j.david.berger@gmail.com>2018-04-13 14:45:16 -0600
committerJustin Berger <j.david.berger@gmail.com>2018-04-13 14:45:16 -0600
commit9533ddefcf8af901ebc0ff0b2ac503b5af2523b8 (patch)
tree0129c6a456d3d3f838b6fc04a8ebfc678ddeb677 /include/libsurvive/survive.h
parent7acbf4e2a2cf564b1792d0b67f483fdd20e19b3e (diff)
downloadlibsurvive-9533ddefcf8af901ebc0ff0b2ac503b5af2523b8.tar.gz
libsurvive-9533ddefcf8af901ebc0ff0b2ac503b5af2523b8.tar.bz2
Remove SurviveObject if they fail to configure; prevents issues calibrating with HMD when controllers are off
Diffstat (limited to 'include/libsurvive/survive.h')
-rw-r--r--include/libsurvive/survive.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/libsurvive/survive.h b/include/libsurvive/survive.h
index 93af4c0..66993df 100644
--- a/include/libsurvive/survive.h
+++ b/include/libsurvive/survive.h
@@ -327,6 +327,7 @@ void RegisterDriver(const char *name, void *data);
// For device drivers to call. This actually attaches them.
int survive_add_object(SurviveContext *ctx, SurviveObject *obj);
+void survive_remove_object(SurviveContext *ctx, SurviveObject *obj);
void survive_add_driver(SurviveContext *ctx, void *payload, DeviceDriverCb poll, DeviceDriverCb close,
DeviceDriverMagicCb magic);