Skip to content

Commit 05ef10c

Browse files
committed
Expose lsl_library_info()
1 parent 5b549a0 commit 05ef10c

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

LSL.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@ public enum processing_options_t : byte
9898
*/
9999
public static int protocol_version() { return dll.lsl_protocol_version(); }
100100

101+
/// String describing the library, e.g. build configuration, git commit hash / branch, debug information…
102+
public static string library_info() { return Marshal.PtrToStringAnsi(dll.lsl_library_info()); }
103+
101104
/**
102105
* Version of the liblsl library.
103106
* The major version is library_version() / 100;
@@ -889,6 +892,9 @@ class dll
889892
[DllImport(libname, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi, ExactSpelling = true)]
890893
public static extern int lsl_protocol_version();
891894

895+
[DllImport(libname, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi, ExactSpelling = true)]
896+
public static extern IntPtr lsl_library_info();
897+
892898
[DllImport(libname, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi, ExactSpelling = true)]
893899
public static extern int lsl_library_version();
894900

0 commit comments

Comments
 (0)