removed parameter_tree, added attribute

This commit is contained in:
Juri Glass 2011-08-22 17:13:15 +02:00
parent b2a6c23b41
commit 1d3df4efaf
2 changed files with 4 additions and 4 deletions

View file

@ -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();

View file

@ -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);
}
}