-destroy function moved in file :-)

This commit is contained in:
Jan Hutter
2005-11-22 11:54:58 +00:00
parent 74d8414cc8
commit 723b666452
+19 -19
View File
@@ -168,25 +168,6 @@ static status_t verify(private_notify_payload_t *this)
return SUCCESS;
}
/**
* Implements payload_t's and notify_payload_t's destroy function.
* See #payload_s.destroy or notify_payload_s.destroy for description.
*/
static status_t destroy(private_notify_payload_t *this)
{
if (this->notification_data.ptr != NULL)
{
allocator_free(this->notification_data.ptr);
}
if (this->spi.ptr != NULL)
{
allocator_free(this->spi.ptr);
}
allocator_free(this);
return SUCCESS;
}
/**
* Implements payload_t's get_encoding_rules function.
* See #payload_s.get_encoding_rules for description.
@@ -370,6 +351,25 @@ status_t set_notification_data(private_notify_payload_t *this, chunk_t notificat
return SUCCESS;
}
/**
* Implements payload_t's and notify_payload_t's destroy function.
* See #payload_s.destroy or notify_payload_s.destroy for description.
*/
static status_t destroy(private_notify_payload_t *this)
{
if (this->notification_data.ptr != NULL)
{
allocator_free(this->notification_data.ptr);
}
if (this->spi.ptr != NULL)
{
allocator_free(this->spi.ptr);
}
allocator_free(this);
return SUCCESS;
}
/*
* Described in header
*/