~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to libdrizzle/errmsg.h

  • Committer: Brian Aker
  • Date: 2008-10-06 06:47:29 UTC
  • Revision ID: brian@tangent.org-20081006064729-2i9mhjkzyvow9xsm
RemoveĀ uint.

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_DRIZZLE_PROTOCOL_ERRMSG_H
21
 
#define PLUGIN_DRIZZLE_PROTOCOL_ERRMSG_H
22
 
 
23
 
namespace drizzle_protocol
24
 
{
 
20
#ifndef _libdrizzle_errmsg_h
 
21
#define _libdrizzle_errmsg_h
25
22
 
26
23
/* Error messages for MySQL clients */
27
24
/* (Error messages for the daemon are in sql/share/errmsg.txt) */
28
25
 
29
 
const char * drizzleclient_get_client_error(unsigned int err_index);
 
26
#ifdef  __cplusplus
 
27
extern "C" {
 
28
#endif
 
29
const char * get_client_error(unsigned int err_index);
 
30
#ifdef  __cplusplus
 
31
}
 
32
#endif
30
33
 
31
34
#define CR_MIN_ERROR    2000  /* For easier client code */
32
35
#define CR_MAX_ERROR    2999
33
36
#if !defined(ER)
34
 
#define ER(X) drizzleclient_get_client_error((X)-CR_MIN_ERROR)
 
37
#define ER(X) get_client_error((X)-CR_MIN_ERROR)
35
38
#endif
36
39
#define CLIENT_ERRMAP    2  /* Errormap used by my_error() */
37
40
 
103
106
  CR_ERROR_LAST    =2065 /*Copy last error nr:*/
104
107
};
105
108
 
106
 
} /* namespace drizzle_protocol */
107
 
 
108
 
#endif /* PLUGIN_DRIZZLE_PROTOCOL_ERRMSG_H */
 
109
#endif