Added a get_name() function to plugin_t, create_plugin_enumerator enumerates over plugin_t
This commit is contained in:
@@ -43,6 +43,12 @@ struct private_addrblock_plugin_t {
|
||||
addrblock_narrow_t *narrower;
|
||||
};
|
||||
|
||||
METHOD(plugin_t, get_name, char*,
|
||||
private_addrblock_plugin_t *this)
|
||||
{
|
||||
return "addrblock";
|
||||
}
|
||||
|
||||
METHOD(plugin_t, destroy, void,
|
||||
private_addrblock_plugin_t *this)
|
||||
{
|
||||
@@ -63,6 +69,7 @@ plugin_t *addrblock_plugin_create()
|
||||
INIT(this,
|
||||
.public = {
|
||||
.plugin = {
|
||||
.get_name = _get_name,
|
||||
.destroy = _destroy,
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user