diff --git a/sml/include/sml/sml_get_proc_parameter_request.h b/sml/include/sml/sml_get_proc_parameter_request.h index 7c5a6c2..b46ddec 100644 --- a/sml/include/sml/sml_get_proc_parameter_request.h +++ b/sml/include/sml/sml_get_proc_parameter_request.h @@ -33,7 +33,7 @@ typedef struct { octet_string *username; // optional octet_string *password; // optional sml_tree_path *parameter_tree_path; - sml_tree *parameter_tree; + octet_string *attribute; // optional } sml_get_proc_parameter_request; sml_get_proc_parameter_request *sml_get_proc_parameter_request_init(); diff --git a/sml/src/sml_get_proc_parameter_request.c b/sml/src/sml_get_proc_parameter_request.c index 77915c5..fb985f6 100644 --- a/sml/src/sml_get_proc_parameter_request.c +++ b/sml/src/sml_get_proc_parameter_request.c @@ -49,7 +49,7 @@ sml_get_proc_parameter_request *sml_get_proc_parameter_request_parse(sml_buffer if (sml_buf_has_errors(buf)) goto error; msg->parameter_tree_path = sml_tree_path_parse(buf); if (sml_buf_has_errors(buf)) goto error; - msg->parameter_tree = sml_tree_parse(buf); + msg->attribute = sml_octet_string_parse(buf); if (sml_buf_has_errors(buf)) goto error; return msg; @@ -65,7 +65,7 @@ void sml_get_proc_parameter_request_write(sml_get_proc_parameter_request *msg, s sml_octet_string_write(msg->username, buf); sml_octet_string_write(msg->password, buf); sml_tree_path_write(msg->parameter_tree_path, buf); - sml_tree_write(msg->parameter_tree, buf); + sml_octet_string_write(msg->attribute, buf); } void sml_get_proc_parameter_request_free(sml_get_proc_parameter_request *msg) { @@ -74,7 +74,7 @@ void sml_get_proc_parameter_request_free(sml_get_proc_parameter_request *msg) { sml_octet_string_free(msg->username); sml_octet_string_free(msg->password); sml_tree_path_free(msg->parameter_tree_path); - sml_tree_free(msg->parameter_tree); + sml_octet_string_free(msg->attribute); free(msg); } }