1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
4
* Copyright (C) 2009 Sun Microsystems
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; version 2 of the License.
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20
#ifndef DRIZZLED_PLUGIN_LIBRARY_H
21
#define DRIZZLED_PLUGIN_LIBRARY_H
24
* @file Defines a Plugin Library Wrapper
26
* A plugin::Library is a wrapper object around a plugin .so file. It owns
27
* the void * returned by dlopen and contains the knowledge of how to load
28
* and unload plugin libraries via dlopen().
40
/* A handle for the dynamic library containing a plugin or plugins. */
45
const Manifest *manifest;
47
/* We don't want these */
49
Library(const Library &);
50
Library& operator=(const Library &);
52
/* Construction should only happen through the static factory method */
53
Library(const std::string &name_arg,
55
const Manifest *manifest_arg);
59
const std::string &getName() const
64
const Manifest *getManifest() const
69
static Library *loadLibrary(const std::string &plugin_name);
72
} /* namespace plugin */
73
} /* namespace drizzled */
75
#endif /* DRIZZLED_PLUGIN_LIBRARY_H */