~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to libdrizzleclient/net_serv.h

  • Committer: Jay Pipes
  • Date: 2009-02-04 15:44:25 UTC
  • mfrom: (829 drizzle)
  • mto: This revision was merged to the branch mainline in revision 830.
  • Revision ID: jpipes@serialcoder-20090204154425-th8xfk2ujz2y8xwg
Merge with trunk

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;