~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to libdrizzleclient/net_serv.h

  • Committer: Monty Taylor
  • Date: 2009-02-02 19:40:04 UTC
  • mto: (779.7.3 devel)
  • mto: This revision was merged to the branch mainline in revision 823.
  • Revision ID: mordred@inaugust.com-20090202194004-oh4e2cnxg7gsi28h
Renmaed libdrizzle in the tree to libdrizzleclient to avoid namespace clashes
with new libdrizzle.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 */
19
19
 
20
20
 
21
 
#ifndef _libdrizzle_net_serv_h_
22
 
#define _libdrizzle_net_serv_h_
23
 
 
24
 
#ifdef __cplusplus
25
 
extern "C" {
26
 
#endif
 
21
#ifndef LIBDRIZZLE_NET_SERV_H
 
22
#define LIBDRIZZLE_NET_SERV_H
 
23
 
 
24
 
 
25
#define net_new_transaction(net) ((net)->pkt_nr=0)
 
26
 
 
27
#include "vio.h"
27
28
 
28
29
#include <stdint.h>
29
30
#if !defined(__cplusplus)
30
31
# include <stdbool.h>
31
32
#endif
32
33
 
33
 
#define net_new_transaction(net) ((net)->pkt_nr=0)
34
 
 
35
 
#include <libdrizzle/vio.h>
36
 
 
37
34
#define LIBDRIZZLE_ERRMSG_SIZE 512
38
35
#define LIBDRIZZLE_SQLSTATE_LENGTH 5
39
36
 
 
37
#ifdef __cplusplus
 
38
extern "C" {
 
39
#endif
 
40
 
40
41
typedef struct st_net {
41
42
  Vio *vio;
42
43
  unsigned char *buff,*buff_end,*write_pos,*read_pos;