~drizzle-trunk/drizzle/development

520.3.2 by mark
add parser and scheduling plugin files
1
/*
2
 -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
3
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
4
660.1.3 by Eric Herman
removed trailing whitespace with simple script:
5
 *  Definitions required for Configuration Variables plugin
520.3.2 by mark
add parser and scheduling plugin files
6
7
 *  Copyright (C) 2008 Mark Atwood
8
 *
9
 *  This program is free software; you can redistribute it and/or modify
10
 *  it under the terms of the GNU General Public License as published by
11
 *  the Free Software Foundation; version 2 of the License.
12
 *
13
 *  This program is distributed in the hope that it will be useful,
14
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
15
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
 *  GNU General Public License for more details.
17
 *
18
 *  You should have received a copy of the GNU General Public License
19
 *  along with this program; if not, write to the Free Software
20
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
21
 */
22
23
#ifndef DRIZZLED_PLUGIN_PARSER_H
24
#define DRIZZLED_PLUGIN_PARSER_H
25
26
typedef struct parser_st
27
{
28
  /* todo, define this api */
29
  /* this is the API that a parser plugin must implement.
30
     it should implement each of these function pointers.
31
     if a function returns bool true, that means it failed.
32
     if a function pointer is NULL, that's ok.
33
  */
34
35
  bool (*parser_func1)(Session *session, void *parm1, void *parm2);
36
  bool (*parser_func2)(Session *session, void *parm3, void *parm4);
37
} parser_t;
38
39
#endif /* DRIZZLED_PLUGIN_PARSER_H */