~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to libdrizzle/libdrizzle.h

  • Committer: Monty Taylor
  • Date: 2008-09-15 17:24:04 UTC
  • Revision ID: monty@inaugust.com-20080915172404-ygh6hiyu0q7qpa9x
Removed strndup calls.

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; version 2 of the License.
 
8
 *  the Free Software Foundation; either version 2 of the License, or
 
9
 *  (at your option) any later version.
9
10
 *
10
11
 *  This program is distributed in the hope that it will be useful,
11
12
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
19
20
 
20
21
/*
21
22
  This file defines the client API to DRIZZLE and also the ABI of the
22
 
  dynamically linked libdrizzle.
 
23
  dynamically linked libdrizzleclient.
23
24
 
24
25
  In case the file is changed so the ABI is broken, you must also
25
26
  update the SHARED_LIB_MAJOR_VERSION in configure.ac.
29
30
#ifndef _libdrizzle_libdrizzle_h
30
31
#define _libdrizzle_libdrizzle_h
31
32
 
32
 
#include <drizzled/common.h>
 
33
#ifdef  __cplusplus
 
34
extern "C" {
 
35
#endif
 
36
 
 
37
#include <libdrizzle/drizzle_com.h>
 
38
 
 
39
extern unsigned int drizzle_port;
33
40
 
34
41
#define CLIENT_NET_READ_TIMEOUT    365*24*3600  /* Timeout on read */
35
42
#define CLIENT_NET_WRITE_TIMEOUT  365*24*3600  /* Timeout on write */
44
51
#include <libdrizzle/drizzle_parameters.h>
45
52
#include <libdrizzle/drizzle_methods.h>
46
53
 
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);
 
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
 
58
68
 
59
69
#ifdef  __cplusplus
60
70
}