server messages FEATURE getters for basic server error elements
diff --git a/src/messages_server.h b/src/messages_server.h
index 25aa0a7..f6426cf 100644
--- a/src/messages_server.h
+++ b/src/messages_server.h
@@ -151,6 +151,22 @@
struct nc_server_error *nc_err_libyang(void);
/**
+ * @brief Get the \<error-type\> of a server error.
+ *
+ * @param[in] err Server error to read from.
+ * @return Server error type, 0 on error.
+ */
+NC_ERR_TYPE nc_err_get_type(struct nc_server_error *err);
+
+/**
+ * @brief Get the \<error-tag\> of a server error.
+ *
+ * @param[in] err Server error to read from.
+ * @return Server error tag, 0 on error.
+ */
+NC_ERR nc_err_get_tag(struct nc_server_error *err);
+
+/**
* @brief Set the \<error-app-tag\> element of an error. Any previous value will be overwritten.
*
* @param[in] err Error to modify.
@@ -160,6 +176,14 @@
int nc_err_set_app_tag(struct nc_server_error *err, const char *error_app_tag);
/**
+ * @brief Get the \<error-app-tag\> of a server error.
+ *
+ * @param[in] err Server error to read from.
+ * @return Server error app tag, NULL on error.
+ */
+const char *nc_err_get_app_tag(struct nc_server_error *err);
+
+/**
* @brief Set the \<error-path\> element of an error. Any previous value will be overwritten.
*
* @param[in] err Error to modify.
@@ -169,6 +193,14 @@
int nc_err_set_path(struct nc_server_error *err, const char *error_path);
/**
+ * @brief Get the \<error-path\> of a server error.
+ *
+ * @param[in] err Server error to read from.
+ * @return Server error path, NULL on error.
+ */
+const char *nc_err_get_path(struct nc_server_error *err);
+
+/**
* @brief Set the \<error-message\> element of an error. Any previous value will be overwritten.
*
* @param[in] err Error to modify.
@@ -179,6 +211,14 @@
int nc_err_set_msg(struct nc_server_error *err, const char *error_message, const char *lang);
/**
+ * @brief Get the \<error-message\> of a server error.
+ *
+ * @param[in] err Server error to read from.
+ * @return Server error message, NULL on error.
+ */
+const char *nc_err_get_msg(struct nc_server_error *err);
+
+/**
* @brief Set the \<session-id\> element of an error. Any previous value will be overwritten.
*
* @param[in] err Error to modify.