Code

error utils: Add sdb_error_parse_priority().
[sysdb.git] / src / include / utils / error.h
index 49034eb2544381061583c33d4174e9fb9089e80e..ae653af2ce6250ea75a039def23b3fac1d6b7ddd 100644 (file)
@@ -131,6 +131,17 @@ sdb_error_get(void);
 int
 sdb_error_get_prio(void);
 
+/*
+ * sdb_error_parse_priority:
+ * Parse the name of a log priority.
+ *
+ * Returns:
+ *  - the numeric log priority on success
+ *  - a negative value else
+ */
+int
+sdb_error_parse_priority(char *prio);
+
 /*
  * sdb_strerror:
  * This is a wrapper around the system's strerror function which ensures that