aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/plugins/attr_sql/attr_sql_plugin.c
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2015-03-19 11:24:31 +0100
committerMartin Willi <martin@revosec.ch>2015-03-19 11:24:31 +0100
commitfd6cc7f243c2e627a7264c916bb15e2f22484071 (patch)
tree4427aa323de14a887ca3e4db770c2df178e3aa63 /src/libcharon/plugins/attr_sql/attr_sql_plugin.c
parent31be582399e255b785010c59b626453f909b2648 (diff)
downloadstrongswan-fd6cc7f243c2e627a7264c916bb15e2f22484071.tar.bz2
strongswan-fd6cc7f243c2e627a7264c916bb15e2f22484071.tar.xz
attr-sql: Rename sql_attribute_t to attr_sql_provider_t
As the plugin has its origins in the sql plugin, it still uses the naming scheme for the attribute provider implementation. Rename the class to better match the naming scheme we use in any other plugin
Diffstat (limited to 'src/libcharon/plugins/attr_sql/attr_sql_plugin.c')
-rw-r--r--src/libcharon/plugins/attr_sql/attr_sql_plugin.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libcharon/plugins/attr_sql/attr_sql_plugin.c b/src/libcharon/plugins/attr_sql/attr_sql_plugin.c
index 247cc11c3..908877514 100644
--- a/src/libcharon/plugins/attr_sql/attr_sql_plugin.c
+++ b/src/libcharon/plugins/attr_sql/attr_sql_plugin.c
@@ -19,7 +19,7 @@
#include <plugins/plugin_feature.h>
#include "attr_sql_plugin.h"
-#include "sql_attribute.h"
+#include "attr_sql_provider.h"
typedef struct private_attr_sql_plugin_t private_attr_sql_plugin_t;
@@ -41,7 +41,7 @@ struct private_attr_sql_plugin_t {
/**
* configuration attributes
*/
- sql_attribute_t *attribute;
+ attr_sql_provider_t *attribute;
};
METHOD(plugin_t, get_name, char*,
@@ -74,7 +74,7 @@ static bool open_database(private_attr_sql_plugin_t *this,
DBG1(DBG_CFG, "attr-sql plugin failed to connect to database");
return FALSE;
}
- this->attribute = sql_attribute_create(this->db);
+ this->attribute = attr_sql_provider_create(this->db);
charon->attributes->add_provider(charon->attributes,
&this->attribute->provider);
}