~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/auth_http/auth_http.cc

Merged in plugin-slot-reorg patches.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
}
26
26
 
27
27
 
28
 
class Auth_http : public Authentication
 
28
class Auth_http : public drizzled::plugin::Authentication
29
29
{
30
30
  CURLcode rv;
31
31
  CURL *curl_handle;
32
32
public:
33
 
  Auth_http() : Authentication()
 
33
  Auth_http() : drizzled::plugin::Authentication()
34
34
  {
35
35
    // we are trusting that plugin initializers are called singlethreaded at startup
36
36
    // if something else also calls curl_global_init() in a threadrace while we are here,
113
113
    return 1;
114
114
 
115
115
  auth= new Auth_http();
116
 
  registry.add(auth);
 
116
  registry.authentication.add(auth);
117
117
 
118
118
  return 0;
119
119
}
122
122
{
123
123
  if (auth)
124
124
  {
125
 
    registry.remove(auth);
 
125
    registry.authentication.remove(auth);
126
126
    delete auth;
127
127
 
128
128
    curl_global_cleanup();