Add feature to clone message element
This commit is contained in:
@ -56,6 +56,13 @@ static void* capwap_wtpstaticipaddress_element_parsing(capwap_message_elements_h
|
||||
return data;
|
||||
}
|
||||
|
||||
/* */
|
||||
static void* capwap_wtpstaticipaddress_element_clone(void* data) {
|
||||
ASSERT(data != NULL);
|
||||
|
||||
return capwap_clone(data, sizeof(struct capwap_wtpstaticipaddress_element));
|
||||
}
|
||||
|
||||
/* */
|
||||
static void capwap_wtpstaticipaddress_element_free(void* data) {
|
||||
ASSERT(data != NULL);
|
||||
@ -67,5 +74,6 @@ static void capwap_wtpstaticipaddress_element_free(void* data) {
|
||||
struct capwap_message_elements_ops capwap_element_wtpstaticipaddress_ops = {
|
||||
.create_message_element = capwap_wtpstaticipaddress_element_create,
|
||||
.parsing_message_element = capwap_wtpstaticipaddress_element_parsing,
|
||||
.free_parsed_message_element = capwap_wtpstaticipaddress_element_free
|
||||
.clone_message_element = capwap_wtpstaticipaddress_element_clone,
|
||||
.free_message_element = capwap_wtpstaticipaddress_element_free
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user