From cc7fd3a5aa202734dee1101ae2b06268010bdd04 Mon Sep 17 00:00:00 2001 From: Speykious Date: Sat, 15 Jan 2022 02:32:56 +0100 Subject: [PATCH] Port `MpReturnCode` Might consider renaming it later. `Mp` is a bit weird, even though it makes the name of the enum quite conveniently short. --- Mediapipe.Net/Native/MpReturnCode.cs | 33 ++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 Mediapipe.Net/Native/MpReturnCode.cs diff --git a/Mediapipe.Net/Native/MpReturnCode.cs b/Mediapipe.Net/Native/MpReturnCode.cs new file mode 100644 index 0000000..ba67832 --- /dev/null +++ b/Mediapipe.Net/Native/MpReturnCode.cs @@ -0,0 +1,33 @@ +// Copyright (c) homuler and Vignette +// This file is part of MediaPipe.NET. +// MediaPipe.NET is licensed under the MIT License. See LICENSE for details. + +namespace Mediapipe.Net.Native +{ + /// + /// Code returned by most of MediaPipe's unsafe methods. + /// + public enum MpReturnCode : int + { + /// + /// Nothing gone wrong. + /// + Success = 0, + /// + /// A standard exception is thrown. + /// + StandardError = 1, + /// + /// Something other than standard exception is thrown. + /// + UnknownError = 70, + /// + /// SDK failed to set status code (bug). + /// + Unset = 128, + /// + /// Received SIGABRT. + /// + Aborted = 134, + } +}