~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/logging_gearman/logging_gearman.cc

Remove PLUGIN and MODULES.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18
18
 */
19
19
 
20
 
#include <drizzled/server_includes.h>
 
20
#include "config.h"
21
21
#include <drizzled/plugin/logging.h>
22
22
#include <drizzled/gettext.h>
23
23
#include <drizzled/session.h>
24
24
 
25
25
#include <libgearman/gearman.h>
 
26
#include <limits.h>
 
27
#include <sys/time.h>
 
28
#include <sys/types.h>
 
29
#include <sys/stat.h>
 
30
#include <fcntl.h>
 
31
 
 
32
 
 
33
using namespace drizzled;
26
34
 
27
35
 
28
36
/* TODO make this dynamic as needed */
37
45
   until the Session has a good utime "now" we can use
38
46
   will have to use this instead */
39
47
 
40
 
#include <sys/time.h>
41
48
static uint64_t get_microtime()
42
49
{
43
50
#if defined(HAVE_GETHRTIME)
326
333
                          NULL, /* update func*/
327
334
                          "drizzlelog" /* default */);
328
335
 
329
 
static struct st_mysql_sys_var* logging_gearman_system_variables[]= {
 
336
static drizzle_sys_var* logging_gearman_system_variables[]= {
330
337
  DRIZZLE_SYSVAR(enable),
331
338
  DRIZZLE_SYSVAR(host),
332
339
  DRIZZLE_SYSVAR(function),
333
340
  NULL
334
341
};
335
342
 
336
 
drizzle_declare_plugin
 
343
DRIZZLE_DECLARE_PLUGIN
337
344
{
 
345
  DRIZZLE_VERSION_ID,
338
346
    "logging_gearman",
339
347
    "0.1",
340
348
    "Mark Atwood <mark@fallenpegasus.com>",
346
354
    logging_gearman_system_variables,
347
355
    NULL
348
356
}
349
 
drizzle_declare_plugin_end;
 
357
DRIZZLE_DECLARE_PLUGIN_END;