~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to libdrizzle/libdrizzle.h

  • Committer: Monty Taylor
  • Date: 2008-09-16 06:40:44 UTC
  • mfrom: (390.1.7 client-split)
  • Revision ID: monty@inaugust.com-20080916064044-vbgmaf36cvm8jufx
Merged in from client-split.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 *
6
6
 *  This program is free software; you can redistribute it and/or modify
7
7
 *  it under the terms of the GNU General Public License as published by
8
 
 *  the Free Software Foundation; either version 2 of the License, or
9
 
 *  (at your option) any later version.
 
8
 *  the Free Software Foundation; version 2 of the License.
10
9
 *
11
10
 *  This program is distributed in the hope that it will be useful,
12
11
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
20
19
 
21
20
/*
22
21
  This file defines the client API to DRIZZLE and also the ABI of the
23
 
  dynamically linked libdrizzleclient.
 
22
  dynamically linked libdrizzle.
24
23
 
25
24
  In case the file is changed so the ABI is broken, you must also
26
25
  update the SHARED_LIB_MAJOR_VERSION in configure.ac.
30
29
#ifndef _libdrizzle_libdrizzle_h
31
30
#define _libdrizzle_libdrizzle_h
32
31
 
33
 
#ifdef  __cplusplus
34
 
extern "C" {
35
 
#endif
36
 
 
37
32
#include <libdrizzle/drizzle_com.h>
38
33
 
39
 
extern unsigned int drizzle_port;
40
 
 
41
34
#define CLIENT_NET_READ_TIMEOUT    365*24*3600  /* Timeout on read */
42
35
#define CLIENT_NET_WRITE_TIMEOUT  365*24*3600  /* Timeout on write */
43
36
 
51
44
#include <libdrizzle/drizzle_parameters.h>
52
45
#include <libdrizzle/drizzle_methods.h>
53
46
 
54
 
const char * drizzle_get_client_info(void);
55
 
uint32_t drizzle_get_client_version(void);
56
 
uint32_t drizzle_escape_string(char *to,const char *from,
57
 
                               uint32_t from_length);
58
 
uint32_t drizzle_hex_string(char *to,const char *from,
59
 
                            uint32_t from_length);
60
 
 
61
 
/*
62
 
  Set up and bring down the server; to ensure that applications will
63
 
  work when linked against either the standard client library or the
64
 
  embedded server library, these functions should be called.
65
 
*/
66
 
void drizzle_server_end(void);
67
 
 
 
47
#ifdef  __cplusplus
 
48
extern "C" {
 
49
#endif
 
50
 
 
51
  const char * drizzle_get_client_info(void);
 
52
  uint32_t drizzle_get_client_version(void);
 
53
  unsigned int drizzle_get_default_port(void);
 
54
  uint32_t drizzle_escape_string(char *to,const char *from,
 
55
                                 uint32_t from_length);
 
56
  uint32_t drizzle_hex_string(char *to,const char *from,
 
57
                              uint32_t from_length);
68
58
 
69
59
#ifdef  __cplusplus
70
60
}