MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
my_libwrap.c
1 /* Copyright (C) 2003 MySQL AB
2 
3  This program is free software; you can redistribute it and/or modify
4  it under the terms of the GNU General Public License as published by
5  the Free Software Foundation; version 2 of the License.
6 
7  This program is distributed in the hope that it will be useful,
8  but WITHOUT ANY WARRANTY; without even the implied warranty of
9  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  GNU General Public License for more details.
11 
12  You should have received a copy of the GNU General Public License
13  along with this program; if not, write to the Free Software
14  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */
15 
16 /*
17  This is needed to be able to compile with original libwrap header
18  files that don't have the prototypes
19 */
20 
21 #include <my_global.h>
22 #include <my_libwrap.h>
23 
24 #ifdef HAVE_LIBWRAP
25 
26 void my_fromhost(struct request_info *req)
27 {
28  fromhost(req);
29 }
30 
31 int my_hosts_access(struct request_info *req)
32 {
33  return hosts_access(req);
34 }
35 
36 char *my_eval_client(struct request_info *req)
37 {
38  return eval_client(req);
39 }
40 
41 #endif /* HAVE_LIBWRAP */