~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/xid.h

  • Committer: Joseph Daly
  • Date: 2010-09-16 17:47:44 UTC
  • mto: (1774.1.1 build)
  • mto: This revision was merged to the branch mainline in revision 1775.
  • Revision ID: jdaly@rx7-20100916174744-9myzc6sigk4zrmtn
fix copyright

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[];