~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to libdrizzleclient/libdrizzle.h

  • Committer: Brian Aker
  • Date: 2009-04-07 06:38:05 UTC
  • mfrom: (975.1.3 merge)
  • Revision ID: brian@gaz-20090407063805-vd0t7tim8vxkqz4j
Merge of session lock removal

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* - mode: c; c-basic-offset: 2; indent-tabs-mode: nil; -*-
 
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
 
3
 *
 
4
 *  Copyright (C) 2008 Sun Microsystems, Inc.
 
5
 *
 
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.
 
9
 *
 
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.
 
14
 *
 
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
 
18
 */
 
19
 
 
20
/*
 
21
  This file defines the client API to DRIZZLE and also the ABI of the
 
22
  dynamically linked libdrizzleclient.
 
23
 
 
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.
 
26
 
 
27
*/
 
28
 
 
29
#ifndef LIBDRIZZLECLIENT_LIBDRIZZLE_H
 
30
#define LIBDRIZZLECLIENT_LIBDRIZZLE_H
 
31
 
 
32
#include <drizzled/common.h>
 
33
 
 
34
#define CLIENT_NET_READ_TIMEOUT    365*24*3600  /* Timeout on read */
 
35
#define CLIENT_NET_WRITE_TIMEOUT  365*24*3600  /* Timeout on write */
 
36
 
 
37
#include "drizzle_field.h"
 
38
#include "drizzle_rows.h"
 
39
#include "drizzle_data.h"
 
40
#include "options.h"
 
41
 
 
42
#include "drizzle.h"
 
43
#include "drizzle_parameters.h"
 
44
#include "drizzle_methods.h"
 
45
 
 
46
#include <stdint.h>
 
47
 
 
48
#ifdef  __cplusplus
 
49
extern "C" {
 
50
#endif
 
51
 
 
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);
 
57
 
 
58
#ifdef  __cplusplus
 
59
}
 
60
#endif
 
61
 
 
62
#endif /* LIBDRIZZLECLIENT_LIBDRIZZLE_H */