$Revision: 1.22 $
Semi-internal header file for UD module
Status: NOT REVUED, NOT TESTED
Author(s): Andrei Robachevsky
Included in: | modules/pm/pm_serials.c |
String sizes
#define STR_M 255
#define STR_L 1023
#define STR_XL 4095
#define STR_XXL 16383
#define STR_XXXL 65535
#define UD_commit_serial( tr )
#define UD_rollback_serial( tr )
struct _Attribute_t | |
{ | |
A_Type_t type; | |
char* value; | |
} |
struct _Object_t | |
{ | |
C_Type_t type; | |
long id; | |
GSList* attributes; | |
GString* object; | |
} |
struct _obj_parse_t | |
{ | |
Object_t* obj; | |
char* object_name; | |
GSList* new_attr_list; | |
Attribute_t* current_attr; | |
MYSQL* sql_connection; | |
nic_handle_t* nh_ptr; | |
char* nic; | |
int garbage; | |
} |
struct _Transaction | |
{ | |
int thread_ins; | |
int thread_upd; | |
MYSQL* sql_connection; | |
Object_t* object; | |
C_Type_t class_type; | |
long object_id; | |
long sequence_id; | |
long serial_id; | |
long transaction_id; | |
int ndummy; | |
long dummy_id[256]; | |
int load_pass; | |
int action; | |
int mode; | |
int succeeded; | |
int error; | |
GString* error_script; | |
GString* query; | |
GString* K; | |
char* save; | |
rp_upd_pack_t* packptr; | |
nic_handle_t* nh; | |
ca_dbSource_t* source_hdl; | |
int socket; | |
} |
struct _nrtm | |
{ | |
char* server; | |
int port; | |
int version; | |
long current_serial; | |
Transaction_t* tr; | |
char object_name[16383]; | |
int op; | |
} |
struct _Log_t | |
{ | |
int num_ok; | |
int num_failed; | |
} |
struct UD_stream_t_ | |
{ | |
FILE* stream; | |
sk_conn_st condat; | |
int num_skip; | |
int load_pass; | |
int ud_mode; | |
struct _nrtm* nrtm; | |
MYSQL* db_connection; | |
ca_dbSource_t* source_hdl; | |
Log_t log; | |
char* error_script; | |
} |