aboutsummaryrefslogtreecommitdiffstats
path: root/src/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/common.h b/src/common.h
index e3d2f4c..e8c0c78 100644
--- a/src/common.h
+++ b/src/common.h
@@ -44,6 +44,17 @@ UA_Server *createSecureServer (UA_UInt16 port, const char *applicationUri,
UA_StatusCode *retval);
/**
+ * @brief Parses a log-level name into the corresponding UA_LogLevel value.
+ *
+ * Accepted names (case-sensitive): "trace", "debug", "info", "warning",
+ * "error", "fatal".
+ *
+ * @param name Log-level name string.
+ * @return The matching UA_LogLevel, or -1 if the name is not recognized.
+ */
+int parseLogLevel (const char *name);
+
+/**
* @brief Parses a security mode name into the corresponding enum value.
*
* Accepted names: "None", "Sign", "SignAndEncrypt".