1 /* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
2 // vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4:
3 #ident "$Id$"
4 /*======
5 This file is part of TokuDB
6 
7 
8 Copyright (c) 2006, 2015, Percona and/or its affiliates. All rights reserved.
9 
10     TokuDBis is free software: you can redistribute it and/or modify
11     it under the terms of the GNU General Public License, version 2,
12     as published by the Free Software Foundation.
13 
14     TokuDB is distributed in the hope that it will be useful,
15     but WITHOUT ANY WARRANTY; without even the implied warranty of
16     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17     GNU General Public License for more details.
18 
19     You should have received a copy of the GNU General Public License
20     along with TokuDB.  If not, see <http://www.gnu.org/licenses/>.
21 
22 ======= */
23 
24 #ident "Copyright (c) 2006, 2015, Percona and/or its affiliates. All rights reserved."
25 
26 #ifndef _TOKUDB_DIR_CMD_H
27 #define _TOKUDB_DIR_CMD_H
28 
29 #include <sql_class.h>
30 
31 namespace tokudb {
32 
33 struct  dir_cmd_callbacks {
34     void (*set_error)(THD *thd, int error, const char *error_fmt, ...)
35         MY_ATTRIBUTE((format(printf, 3, 4)));
36 };
37 
38 void process_dir_cmd(THD *thd,
39                      const char *cmd_str,
40                      const dir_cmd_callbacks &cb);
41 
42 };
43 
44 #endif // _TOKUDB_DIR_CMD_H
45