~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/xid.h

  • Committer: Brian Aker
  • Date: 2010-05-17 23:12:39 UTC
  • Revision ID: brian@gaz-20100517231239-kgcnn613z0gga7ie
Code shuffle on ReadRecord

Show diffs side-by-side

added added

removed removed

Lines of Context:
81
81
  http://www.opengroup.org/bookstore/catalog/c193.htm
82
82
 
83
83
*/
84
 
 
85
 
class drizzle_xid {
86
 
public:
 
84
struct st_drizzle_xid {
87
85
  long formatID;
88
86
  long gtrid_length;
89
87
  long bqual_length;
90
88
  char data[DRIZZLE_XIDDATASIZE];  /* Not \0-terminated */
91
 
 
92
 
  drizzle_xid() :
93
 
    formatID(0),
94
 
    gtrid_length(0),
95
 
    bqual_length(0)
96
 
  {
97
 
    memset(data, 0, DRIZZLE_XIDDATASIZE);
98
 
  }
99
89
};
100
 
typedef class drizzle_xid DRIZZLE_XID;
 
90
typedef struct st_drizzle_xid DRIZZLE_XID;
101
91
 
102
92
enum xa_states {XA_NOTR=0, XA_ACTIVE, XA_IDLE, XA_PREPARED};
103
93
extern const char *xa_state_names[];