~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to libdrizzleclient/net_serv.h

  • Committer: Brian Aker
  • Date: 2009-02-05 10:38:55 UTC
  • Revision ID: brian@tangent.org-20090205103855-wajzccrbu7zbvmh4
Reworked some classes out of session.h
Also updated ignore file.

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_
 
21
#ifndef LIBDRIZZLE_NET_SERV_H
 
22
#define LIBDRIZZLE_NET_SERV_H
23
23
 
24
 
#include <vio/violite.h>
25
24
 
26
25
#define net_new_transaction(net) ((net)->pkt_nr=0)
27
26
 
 
27
#include "vio.h"
 
28
 
 
29
#include <stdint.h>
 
30
#if !defined(__cplusplus)
 
31
# include <stdbool.h>
 
32
#endif
 
33
 
 
34
#define LIBDRIZZLE_ERRMSG_SIZE 512
 
35
#define LIBDRIZZLE_SQLSTATE_LENGTH 5
 
36
 
28
37
#ifdef __cplusplus
29
38
extern "C" {
30
39
#endif
58
67
  */
59
68
  unsigned char *unused;
60
69
  unsigned int last_errno;
61
 
  unsigned char error; 
 
70
  unsigned char error;
62
71
  /** Client library error message buffer. Actually belongs to struct MYSQL. */
63
 
  char last_error[DRIZZLE_ERRMSG_SIZE];
 
72
  char last_error[LIBDRIZZLE_ERRMSG_SIZE];
64
73
  /** Client library sqlstate buffer. Set along with the error message. */
65
 
  char sqlstate[SQLSTATE_LENGTH+1];
 
74
  char sqlstate[LIBDRIZZLE_SQLSTATE_LENGTH+1];
66
75
  void *extension;
67
76
} NET;
68
77