30 #define MYSQL_SERVER 1
180 #ifdef HANDLER_API_MEMCACHED
183 typedef struct field_arg {
184 unsigned int num_arg;
190 #define MCI_FIELD_ADD(M_ARGS, M_FLD, M_VALUE, M_LEN) \
192 (M_ARGS)->len[M_FLD] = M_LEN; \
193 (M_ARGS)->value[M_FLD] = (char*)(M_VALUE); \
196 #define MCI_FIELD_ALLOC(FIELD, NUM_FLD) \
198 FIELD->len = (int*)malloc((NUM_FLD) * sizeof(*(FIELD->len)));\
199 memset(FIELD->len, 0, (NUM_FLD) * sizeof(*(FIELD->len)));\
200 FIELD->value = (char**)malloc((NUM_FLD) \
201 * sizeof(*(FIELD->value)));\
202 FIELD->num_arg = NUM_FLD; \
205 #define MCI_FIELD_FREE(FIELD) \
208 free(FIELD->value); \
209 FIELD->num_arg = 0; \
219 field_arg_t* srch_args,
229 field_arg_t* store_args);
238 field_arg_t* store_args);
256 enum thr_lock_type lock_mode);