Skip to content

Commit 965cd80

Browse files
author
David Kline
authored
Merge pull request #2148 from davidkline-ms/specViewPinvo
eliminate .net native pinvoke warnings
2 parents 9bb3c0b + 6cb3aaf commit 965cd80

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

Assets/HoloToolkit/SpectatorView/Scripts/SpatialSync/MarkerDetector.cs

+6-6
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,22 @@ namespace HoloToolkit.Unity.SpectatorView
1313
/// </summary>
1414
public class MarkerDetector
1515
{
16-
[DllImport("SpectatorViewPlugin", EntryPoint="MarkerDetector_Initialize")]
16+
[DllImport("SpectatorViewPlugin", EntryPoint="MarkerDetector_Initialize", ExactSpelling=true)]
1717
internal static extern void InitalizeMarkerDetector();
1818

19-
[DllImport("SpectatorViewPlugin", EntryPoint="MarkerDetector_Terminate")]
19+
[DllImport("SpectatorViewPlugin", EntryPoint="MarkerDetector_Terminate", ExactSpelling=true)]
2020
internal static extern void TerminateMarkerDetector();
2121

22-
[DllImport("SpectatorViewPlugin", EntryPoint="MarkerDetector_DetectMarkers")]
22+
[DllImport("SpectatorViewPlugin", EntryPoint="MarkerDetector_DetectMarkers", ExactSpelling=true)]
2323
internal static extern bool DetectMarkers(int _imageWidth, int _imageHeight, IntPtr _imageDate, float _markerSize);
2424

25-
[DllImport("SpectatorViewPlugin", EntryPoint="MarkerDetector_GetNumMarkersDetected")]
25+
[DllImport("SpectatorViewPlugin", EntryPoint="MarkerDetector_GetNumMarkersDetected", ExactSpelling=true)]
2626
internal static extern bool GetNumMarkersDetected(out int _numMarkersDetected);
2727

28-
[DllImport("SpectatorViewPlugin", EntryPoint="MarkerDetector_GetDetectedMarkerIds")]
28+
[DllImport("SpectatorViewPlugin", EntryPoint="MarkerDetector_GetDetectedMarkerIds", ExactSpelling=true)]
2929
internal static extern bool GetDetectedMarkerIds(IntPtr _detectedMarkers);
3030

31-
[DllImport("SpectatorViewPlugin", EntryPoint="MarkerDetector_GetDetectedMarkerPose")]
31+
[DllImport("SpectatorViewPlugin", EntryPoint="MarkerDetector_GetDetectedMarkerPose", ExactSpelling=true)]
3232
internal static extern bool GetDetectedMarkerPose(int _markerId, out float _xPos, out float _yPos, out float _zPos, out float _xRot, out float _yRot, out float _zRot);
3333

3434
/// <summary>

Assets/HoloToolkit/SpectatorView/Scripts/Utilities/OpenCVUtils.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public static class OpenCVUtils
1414
/// <summary>
1515
/// Utility function to ensure the OpenCVWrapper has been successfully loaded
1616
/// </summary>
17-
[DllImport("SpectatorViewPlugin", EntryPoint = "CheckLibraryHasLoaded")]
17+
[DllImport("SpectatorViewPlugin", EntryPoint="CheckLibraryHasLoaded", ExactSpelling=true)]
1818
public static extern void CheckOpenCVWrapperHasLoaded();
1919
}
2020
}

0 commit comments

Comments
 (0)