~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/protocol.h

  • Committer: Stewart Smith
  • Date: 2008-09-25 10:04:06 UTC
  • mto: This revision was merged to the branch mainline in revision 408.
  • Revision ID: stewart@flamingspork.com-20080925100406-hld92f4dr4nuar3a
Move compression functions (compress, uncompress and compressed_length) out into modules and fix test

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
  THD    *thd;
34
34
  String *packet;
35
35
  String *convert;
36
 
  uint32_t field_pos;
37
 
  uint32_t field_count;
38
 
  bool net_store_data(const unsigned char *from, size_t length);
39
 
  bool net_store_data(const unsigned char *from, size_t length,
 
36
  uint field_pos;
 
37
  uint field_count;
 
38
  bool net_store_data(const uchar *from, size_t length);
 
39
  bool net_store_data(const uchar *from, size_t length,
40
40
                      const CHARSET_INFO * const fromcs, const CHARSET_INFO * const tocs);
41
41
  bool store_string_aux(const char *from, size_t length,
42
42
                        const CHARSET_INFO * const fromcs, const CHARSET_INFO * const tocs);
47
47
  void init(THD* thd_arg);
48
48
 
49
49
  enum { SEND_NUM_ROWS= 1, SEND_DEFAULTS= 2, SEND_EOF= 4 };
50
 
  virtual bool send_fields(List<Item> *list, uint32_t flags);
 
50
  virtual bool send_fields(List<Item> *list, uint flags);
51
51
 
52
52
  bool store(I_List<i_string> *str_list);
53
53
  bool store(const char *from, const CHARSET_INFO * const cs);
128
128
  virtual enum enum_protocol_type type() { return PROTOCOL_TEXT; };
129
129
};
130
130
 
131
 
void send_warning(THD *thd, uint32_t sql_errno, const char *err=0);
132
 
void net_send_error(THD *thd, uint32_t sql_errno=0, const char *err=0);
 
131
void send_warning(THD *thd, uint sql_errno, const char *err=0);
 
132
void net_send_error(THD *thd, uint sql_errno=0, const char *err=0);
133
133
void net_end_statement(THD *thd);
134
 
unsigned char *net_store_data(unsigned char *to,const unsigned char *from, size_t length);
135
 
unsigned char *net_store_data(unsigned char *to,int32_t from);
136
 
unsigned char *net_store_data(unsigned char *to,int64_t from);
 
134
uchar *net_store_data(uchar *to,const uchar *from, size_t length);
 
135
uchar *net_store_data(uchar *to,int32_t from);
 
136
uchar *net_store_data(uchar *to,int64_t from);
137
137