1
/* - mode: c; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
4
* Copyright (C) 2008 Sun Microsystems, Inc.
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; version 2 of the License.
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21
This file defines the client API to DRIZZLE and also the ABI of the
22
dynamically linked libdrizzleclient.
24
In case the file is changed so the ABI is broken, you must also
25
update the SHARED_LIB_MAJOR_VERSION in configure.ac.
29
#ifndef LIBDRIZZLECLIENT_LIBDRIZZLE_H
30
#define LIBDRIZZLECLIENT_LIBDRIZZLE_H
32
#include <drizzled/common.h>
34
#define CLIENT_NET_READ_TIMEOUT 365*24*3600 /* Timeout on read */
35
#define CLIENT_NET_WRITE_TIMEOUT 365*24*3600 /* Timeout on write */
37
#include "drizzle_field.h"
38
#include "drizzle_rows.h"
39
#include "drizzle_data.h"
43
#include "drizzle_parameters.h"
44
#include "drizzle_methods.h"
52
const char * drizzleclient_get_client_info(void);
53
uint32_t drizzleclient_get_client_version(void);
54
unsigned int drizzleclient_get_default_port(void);
55
uint32_t drizzleclient_escape_string(char *to,const char *from,
56
uint32_t from_length);
62
#endif /* LIBDRIZZLECLIENT_LIBDRIZZLE_H */