~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/logging_query/logging_query.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
#include PCRE_HEADER
 
25
#include <limits.h>
 
26
#include <sys/time.h>
 
27
#include <sys/types.h>
 
28
#include <sys/stat.h>
 
29
#include <fcntl.h>
 
30
 
 
31
 
 
32
using namespace drizzled;
25
33
 
26
34
/* TODO make this dynamic as needed */
27
35
static const int MAX_MSG_LEN= 32*1024;
38
46
   until the Session has a good utime "now" we can use
39
47
   will have to use this instead */
40
48
 
41
 
#include <sys/time.h>
42
49
static uint64_t get_microtime()
43
50
{
44
51
#if defined(HAVE_GETHRTIME)
398
405
  UINT32_MAX, /* max */
399
406
  0 /* blksiz */);
400
407
 
401
 
static struct st_mysql_sys_var* logging_query_system_variables[]= {
 
408
static drizzle_sys_var* logging_query_system_variables[]= {
402
409
  DRIZZLE_SYSVAR(enable),
403
410
  DRIZZLE_SYSVAR(filename),
404
411
  DRIZZLE_SYSVAR(pcre),
408
415
  NULL
409
416
};
410
417
 
411
 
drizzle_declare_plugin
 
418
DRIZZLE_DECLARE_PLUGIN
412
419
{
 
420
  DRIZZLE_VERSION_ID,
413
421
  "logging_query",
414
422
  "0.2",
415
423
  "Mark Atwood <mark@fallenpegasus.com>",
421
429
  logging_query_system_variables,
422
430
  NULL
423
431
}
424
 
drizzle_declare_plugin_end;
 
432
DRIZZLE_DECLARE_PLUGIN_END;