~ubuntu-branches/ubuntu/trusty/drizzle/trusty

« back to all changes in this revision

Viewing changes to drizzled/plugin/daemon.h

  • Committer: Bazaar Package Importer
  • Author(s): Monty Taylor
  • Date: 2010-10-02 14:17:48 UTC
  • mfrom: (1.1.1 upstream)
  • mto: (2.1.17 sid)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20101002141748-m6vbfbfjhrw1153e
Tags: 2010.09.1802-1
* New upstream release.
* Removed pid-file argument hack.
* Updated GPL-2 address to be new address.
* Directly copy in drizzledump.1 since debian doesn't have sphinx 1.0 yet.
* Link to jquery from libjs-jquery. Add it as a depend.
* Add drizzled.8 symlink to the install files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
 
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
 
3
 *
 
4
 *  Daemon Plugin Interface
 
5
 *
 
6
 *  Copyright (C) 2010 Monty Taylor
 
7
 *
 
8
 *  This program is free software; you can redistribute it and/or modify
 
9
 *  it under the terms of the GNU General Public License as published by
 
10
 *  the Free Software Foundation; version 2 of the License.
 
11
 *
 
12
 *  This program is distributed in the hope that it will be useful,
 
13
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
15
 *  GNU General Public License for more details.
 
16
 *
 
17
 *  You should have received a copy of the GNU General Public License
 
18
 *  along with this program; if not, write to the Free Software
 
19
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
20
 */
 
21
 
 
22
#ifndef DRIZZLED_PLUGIN_DAEMON_H
 
23
#define DRIZZLED_PLUGIN_DAEMON_H
 
24
 
 
25
#include "drizzled/plugin/plugin.h"
 
26
 
 
27
namespace drizzled
 
28
{
 
29
class Session;
 
30
 
 
31
namespace plugin
 
32
{
 
33
 
 
34
class Daemon : public Plugin
 
35
{
 
36
  Daemon();
 
37
  Daemon(const Daemon &);
 
38
  Daemon& operator=(const Daemon &);
 
39
public:
 
40
  explicit Daemon(std::string name_arg)
 
41
    : Plugin(name_arg, "Daemon")
 
42
  {}
 
43
 
 
44
  virtual ~Daemon() {}
 
45
 
 
46
  /**
 
47
   * Standard plugin system registration hooks
 
48
   */
 
49
  static bool addPlugin(Daemon *)
 
50
  {
 
51
    return false;
 
52
  }
 
53
  static void removePlugin(Daemon *)
 
54
  {}
 
55
 
 
56
};
 
57
 
 
58
} /* namespace plugin */
 
59
} /* namespace drizzled */
 
60
 
 
61
#endif /* DRIZZLED_PLUGIN_DAEMON_H */