~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/mysql_protocol/oldlibdrizzle.h

  • Committer: Stewart Smith
  • Date: 2009-12-02 06:01:21 UTC
  • mto: (1237.1.2 push)
  • mto: This revision was merged to the branch mainline in revision 1238.
  • Revision ID: stewart@flamingspork.com-20091202060121-68gyfqifqcjcmi2v
my_end() no longer requires an argument (we removed them all)

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18
18
 */
19
19
 
20
 
#ifndef PLUGIN_MYSQL_PROTOCOL_MYSQL_PROTOCOL_H
21
 
#define PLUGIN_MYSQL_PROTOCOL_MYSQL_PROTOCOL_H
 
20
#ifndef PLUGIN_MYSQL_PROTOCOL_OLDLIBDRIZZLE_H
 
21
#define PLUGIN_MYSQL_PROTOCOL_OLDLIBDRIZZLE_H
22
22
 
23
23
#include <drizzled/plugin/listen_tcp.h>
24
24
#include <drizzled/plugin/client.h>
44
44
{
45
45
private:
46
46
  NET net;
47
 
  drizzled::String packet;
 
47
  String packet;
48
48
  uint32_t client_capabilities;
49
49
  bool using_mysql41_protocol;
50
50
 
51
51
  bool checkConnection(void);
52
52
  bool netStoreData(const unsigned char *from, size_t length);
53
53
  void writeEOFPacket(uint32_t server_status, uint32_t total_warn_count);
54
 
  unsigned char *storeLength(unsigned char *packet, uint64_t length);
55
 
  void makeScramble(char *scramble);
56
54
 
57
55
public:
58
56
  ClientMySQLProtocol(int fd, bool using_mysql41_protocol_arg);
72
70
  virtual void sendEOF(void);
73
71
  virtual void sendError(uint32_t sql_errno, const char *err);
74
72
 
75
 
  virtual bool sendFields(drizzled::List<drizzled::Item> *list);
 
73
  virtual bool sendFields(List<Item> *list);
76
74
 
77
75
  using Client::store;
78
 
  virtual bool store(drizzled::Field *from);
 
76
  virtual bool store(Field *from);
79
77
  virtual bool store(void);
80
78
  virtual bool store(int32_t from);
81
79
  virtual bool store(uint32_t from);
82
80
  virtual bool store(int64_t from);
83
81
  virtual bool store(uint64_t from);
84
 
  virtual bool store(double from, uint32_t decimals, drizzled::String *buffer);
 
82
  virtual bool store(double from, uint32_t decimals, String *buffer);
85
83
  virtual bool store(const char *from, size_t length);
86
84
 
87
85
  virtual bool haveError(void);
89
87
  virtual bool wasAborted(void);
90
88
};
91
89
 
92
 
#endif /* PLUGIN_MYSQL_PROTOCOL_MYSQL_PROTOCOL_H */
 
90
#endif /* PLUGIN_MYSQL_PROTOCOL_OLDLIBDRIZZLE_H */