~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/xid.h

  • Committer: lbieber at stabletransit
  • Date: 2010-10-12 20:53:47 UTC
  • mfrom: (1842.1.3 build)
  • Revision ID: lbieber@drizzle-build-n02.wc1.dfw1.stabletransit.com-20101012205347-zzg0en7nughfhven
Merge Monty - add valgrind stripping program to the tree, suppress size_t signature change
Merge Travis - File: /drizzled/xid.h. Changed struct name of 'st_drizzle_xid' to 'drizzle_xid', changed it to a C++ class and added constructor initialization list
Merge Brian - adding more documentation

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
 
struct st_drizzle_xid {
 
84
 
 
85
class drizzle_xid {
 
86
public:
85
87
  long formatID;
86
88
  long gtrid_length;
87
89
  long bqual_length;
88
90
  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
  }
89
99
};
90
 
typedef struct st_drizzle_xid DRIZZLE_XID;
 
100
typedef class drizzle_xid DRIZZLE_XID;
91
101
 
92
102
enum xa_states {XA_NOTR=0, XA_ACTIVE, XA_IDLE, XA_PREPARED};
93
103
extern const char *xa_state_names[];