Migrated test_vectors_plugin_t to INIT/METHOD macros
This commit is contained in:
@@ -104,10 +104,8 @@ struct private_test_vectors_plugin_t {
|
|||||||
test_vectors_plugin_t public;
|
test_vectors_plugin_t public;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
METHOD(plugin_t, destroy, void,
|
||||||
* Implementation of test_vectors_plugin_t.test_vectorstroy
|
private_test_vectors_plugin_t *this)
|
||||||
*/
|
|
||||||
static void destroy(private_test_vectors_plugin_t *this)
|
|
||||||
{
|
{
|
||||||
free(this);
|
free(this);
|
||||||
}
|
}
|
||||||
@@ -117,10 +115,16 @@ static void destroy(private_test_vectors_plugin_t *this)
|
|||||||
*/
|
*/
|
||||||
plugin_t *test_vectors_plugin_create()
|
plugin_t *test_vectors_plugin_create()
|
||||||
{
|
{
|
||||||
private_test_vectors_plugin_t *this = malloc_thing(private_test_vectors_plugin_t);
|
private_test_vectors_plugin_t *this;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
this->public.plugin.destroy = (void(*)(plugin_t*))destroy;
|
INIT(this,
|
||||||
|
.public = {
|
||||||
|
.plugin = {
|
||||||
|
.destroy = _destroy,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
);
|
||||||
|
|
||||||
for (i = 0; i < countof(crypter); i++)
|
for (i = 0; i < countof(crypter); i++)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user