From 41aa6ba0098d8e75c37a861d4f4d9086d2982d53 Mon Sep 17 00:00:00 2001 From: timyhac Date: Wed, 17 Jul 2024 19:25:10 +1000 Subject: [PATCH] Changed enum naming to reflect naming conventions and libplctag language. In the libplctag wiki, the language used is * "Status code", not a "status" * "Debug level" not a "Debug" * "Event" not an "Event code" --- .../{DEBUG_LEVELS.cs => DEBUG_LEVEL.cs} | 6 +++--- src/libplctag.NativeImport/{EVENT_CODES.cs => EVENT.cs} | 2 +- .../{STATUS_CODES.cs => STATUS_CODE.cs} | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) rename src/libplctag.NativeImport/{DEBUG_LEVELS.cs => DEBUG_LEVEL.cs} (94%) rename src/libplctag.NativeImport/{EVENT_CODES.cs => EVENT.cs} (98%) rename src/libplctag.NativeImport/{STATUS_CODES.cs => STATUS_CODE.cs} (99%) diff --git a/src/libplctag.NativeImport/DEBUG_LEVELS.cs b/src/libplctag.NativeImport/DEBUG_LEVEL.cs similarity index 94% rename from src/libplctag.NativeImport/DEBUG_LEVELS.cs rename to src/libplctag.NativeImport/DEBUG_LEVEL.cs index f85b737e..4bb28e6f 100644 --- a/src/libplctag.NativeImport/DEBUG_LEVELS.cs +++ b/src/libplctag.NativeImport/DEBUG_LEVEL.cs @@ -12,12 +12,12 @@ namespace libplctag.NativeImport /// There are three ways to set the debug level (for historical reasons): /// /// Adding a debug attribute to the attribute string when creating a tag: "protocol=XXX&...&debug=4". - /// Using the function to set the debug attribute. - /// Using the function. + /// Using the function to set the debug attribute. + /// Using the function. /// /// The preferred method in code is the last one. /// - public enum DEBUG_LEVELS + public enum DEBUG_LEVEL { /// /// Disables debugging output. diff --git a/src/libplctag.NativeImport/EVENT_CODES.cs b/src/libplctag.NativeImport/EVENT.cs similarity index 98% rename from src/libplctag.NativeImport/EVENT_CODES.cs rename to src/libplctag.NativeImport/EVENT.cs index dfe7c449..232c411b 100644 --- a/src/libplctag.NativeImport/EVENT_CODES.cs +++ b/src/libplctag.NativeImport/EVENT.cs @@ -11,7 +11,7 @@ namespace libplctag.NativeImport /// The library provides functions to register a callback on a tag. /// These events generate a call to that callback. /// - public enum EVENT_CODES + public enum EVENT { /// /// A read of the tag has been requested. diff --git a/src/libplctag.NativeImport/STATUS_CODES.cs b/src/libplctag.NativeImport/STATUS_CODE.cs similarity index 99% rename from src/libplctag.NativeImport/STATUS_CODES.cs rename to src/libplctag.NativeImport/STATUS_CODE.cs index cce4295d..4a81b786 100644 --- a/src/libplctag.NativeImport/STATUS_CODES.cs +++ b/src/libplctag.NativeImport/STATUS_CODE.cs @@ -11,7 +11,7 @@ namespace libplctag.NativeImport /// Most functions return a status code. /// It will be one of these. /// - public enum STATUS_CODES + public enum STATUS_CODE { /// /// Operation in progress. Not an error.