From ee3160032cd6a609a490be011019b323fe1c0c02 Mon Sep 17 00:00:00 2001 From: dpeter99 Date: Sun, 1 Apr 2018 17:36:08 +0200 Subject: Added new accesors (WIP) --- bindings/cs/libsurvive.net/cfunctions.cs | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) (limited to 'bindings') diff --git a/bindings/cs/libsurvive.net/cfunctions.cs b/bindings/cs/libsurvive.net/cfunctions.cs index 6715a36..67812f5 100644 --- a/bindings/cs/libsurvive.net/cfunctions.cs +++ b/bindings/cs/libsurvive.net/cfunctions.cs @@ -94,7 +94,29 @@ namespace libsurvive public static extern int Survive_default_htc_config_process(SurviveObjectPtr so, string ct0conf, int len); -//#pragma warning restore IDE1006 // Naming Styles + [DllImport("libsurvive", CallingConvention = CallingConvention.StdCall, EntryPoint = "survive_object_codename")] + public static extern char Survive_object_codename(SurviveObjectPtr so); + + + [DllImport("libsurvive", CallingConvention = CallingConvention.StdCall, EntryPoint = "survive_object_drivername")] + public static extern char Survive_object_drivername(SurviveObject so); + + [DllImport("libsurvive", CallingConvention = CallingConvention.StdCall, EntryPoint = "survive_object_charge")] + public static extern byte Survive_object_charge(SurviveObject so); + + [DllImport("libsurvive", CallingConvention = CallingConvention.StdCall, EntryPoint = "survive_object_charging")] + public static extern bool Survive_object_charging(SurviveObject so); + + [DllImport("libsurvive", CallingConvention = CallingConvention.StdCall, EntryPoint = "survive_object_pose")] + public static extern SurvivePose Survive_object_pose(SurviveObject so); + + [DllImport("libsurvive", CallingConvention = CallingConvention.StdCall, EntryPoint = "survive_object_sensor_locations")] + public static extern int Survive_object_sensor_locations(SurviveObjectPtr so); + + [DllImport("libsurvive", CallingConvention = CallingConvention.StdCall, EntryPoint = "survive_object_sensor_normals")] + public static extern int Survive_object_sensor_normals(SurviveObjectPtr so); + + //#pragma warning restore IDE1006 // Naming Styles } -- cgit v1.2.3