Skip to content

Commit b74f4d5

Browse files
committed
Merge remote-tracking branch 'origin/libraryinfo'
2 parents c74a4d4 + 05ef10c commit b74f4d5

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;
@@ -876,6 +879,9 @@ class dll
876879
[DllImport(libname, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi, ExactSpelling = true)]
877880
public static extern int lsl_protocol_version();
878881

882+
[DllImport(libname, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi, ExactSpelling = true)]
883+
public static extern IntPtr lsl_library_info();
884+
879885
[DllImport(libname, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi, ExactSpelling = true)]
880886
public static extern int lsl_library_version();
881887

0 commit comments

Comments
 (0)