diff --git a/Examples/LSLVer/LSLVer.csproj b/Examples/LSLVer/LSLVer.csproj new file mode 100644 index 0000000..42f868a --- /dev/null +++ b/Examples/LSLVer/LSLVer.csproj @@ -0,0 +1,15 @@ + + + + Exe + net6.0 + enable + enable + + + + + + + + diff --git a/Examples/LSLVer/Program.cs b/Examples/LSLVer/Program.cs new file mode 100644 index 0000000..29ef49c --- /dev/null +++ b/Examples/LSLVer/Program.cs @@ -0,0 +1,16 @@ +// Port of https://github.com/sccn/liblsl/blob/master/testing/lslver.c +using SharpLSL; +using SharpLSL.Interop; + +namespace LSLVer +{ + internal class Program + { + static void Main(string[] args) + { + Console.WriteLine($"LSL version: {LSL.lsl_library_version()}"); + Console.WriteLine(Lsl.GetLibraryInfo()); + Console.WriteLine(Lsl.GetLocalClock()); + } + } +} \ No newline at end of file diff --git a/SharpLSL.Full.sln b/SharpLSL.Full.sln index 1011e6e..f8eae79 100644 --- a/SharpLSL.Full.sln +++ b/SharpLSL.Full.sln @@ -35,6 +35,10 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SharpLSL.Native.osx-x64", " EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SharpLSL.Native.all", "Source\SharpLSL.Natives\SharpLSL.Native.all\SharpLSL.Native.all.csproj", "{532D997C-B29A-484B-AADC-8F1AD4835199}" EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Examples", "Examples", "{6D86CC19-E8B3-4C47-89CE-452D1BC2F3BB}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LSLVer", "Examples\LSLVer\LSLVer.csproj", "{D0579532-FD2C-41EB-9F2E-FFC602631313}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -105,10 +109,17 @@ Global {532D997C-B29A-484B-AADC-8F1AD4835199}.Debug|Any CPU.Build.0 = Debug|Any CPU {532D997C-B29A-484B-AADC-8F1AD4835199}.Release|Any CPU.ActiveCfg = Release|Any CPU {532D997C-B29A-484B-AADC-8F1AD4835199}.Release|Any CPU.Build.0 = Release|Any CPU + {D0579532-FD2C-41EB-9F2E-FFC602631313}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {D0579532-FD2C-41EB-9F2E-FFC602631313}.Debug|Any CPU.Build.0 = Debug|Any CPU + {D0579532-FD2C-41EB-9F2E-FFC602631313}.Release|Any CPU.ActiveCfg = Release|Any CPU + {D0579532-FD2C-41EB-9F2E-FFC602631313}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection + GlobalSection(NestedProjects) = preSolution + {D0579532-FD2C-41EB-9F2E-FFC602631313} = {6D86CC19-E8B3-4C47-89CE-452D1BC2F3BB} + EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {DC951642-0519-4898-B040-D6869C5CF3B2} EndGlobalSection