Added a get_name() function to plugin_t, create_plugin_enumerator enumerates over plugin_t
This commit is contained in:
@@ -40,9 +40,14 @@ struct private_attr_sql_plugin_t {
|
||||
* configuration attributes
|
||||
*/
|
||||
sql_attribute_t *attribute;
|
||||
|
||||
};
|
||||
|
||||
METHOD(plugin_t, get_name, char*,
|
||||
private_attr_sql_plugin_t *this)
|
||||
{
|
||||
return "attr-sql";
|
||||
}
|
||||
|
||||
METHOD(plugin_t, destroy, void,
|
||||
private_attr_sql_plugin_t *this)
|
||||
{
|
||||
@@ -71,6 +76,7 @@ plugin_t *attr_sql_plugin_create()
|
||||
INIT(this,
|
||||
.public = {
|
||||
.plugin = {
|
||||
.get_name = _get_name,
|
||||
.destroy = _destroy,
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user