~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/drizzle_protocol/errmsg.h

Put drizzle_protocol plugin in to its own namespace so that symbols won't
conflict with mysql_protocol plugin.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
#ifndef PLUGIN_DRIZZLE_PROTOCOL_ERRMSG_H
21
21
#define PLUGIN_DRIZZLE_PROTOCOL_ERRMSG_H
22
22
 
 
23
namespace plugin
 
24
{
 
25
namespace drizzle_protocol
 
26
{
 
27
 
23
28
/* Error messages for MySQL clients */
24
29
/* (Error messages for the daemon are in sql/share/errmsg.txt) */
25
30
 
26
 
#ifdef  __cplusplus
27
 
extern "C"
28
 
#endif
29
31
const char * drizzleclient_get_client_error(unsigned int err_index);
30
32
 
31
33
#define CR_MIN_ERROR    2000  /* For easier client code */
103
105
  CR_ERROR_LAST    =2065 /*Copy last error nr:*/
104
106
};
105
107
 
 
108
}
 
109
}
 
110
 
106
111
#endif /* PLUGIN_DRIZZLE_PROTOCOL_ERRMSG_H */