~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/errmsg_print.h

  • Committer: Brian Aker
  • Date: 2010-12-19 06:20:54 UTC
  • mfrom: (2005.1.1 bug673105)
  • Revision ID: brian@tangent.org-20101219062054-1kt0l3dxs4z2z8md
Merge Dave.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
   errmsg_printf()
23
23
*/
24
24
 
25
 
 
26
 
 
27
25
#ifndef DRIZZLED_ERRMSG_PRINT_H
28
26
#define DRIZZLED_ERRMSG_PRINT_H
29
27
 
30
 
#include "drizzled/visibility.h"
31
 
#include <drizzled/error/level_t.h>
32
 
 
33
 
#include <string>
34
 
 
35
28
namespace drizzled
36
29
{
37
30
 
38
 
DRIZZLED_API bool errmsg_printf(error::level_t priority, char const *format, ...)
 
31
#define ERRMSG_LVL_DBUG 1
 
32
#define ERRMSG_LVL_INFO 2
 
33
#define ERRMSG_LVL_WARN 3
 
34
#define ERRMSG_LVL_ERROR 4
 
35
 
 
36
bool errmsg_printf(int priority, char const *format, ...)
39
37
  __attribute__((format(printf, 2, 3)));
40
38
 
41
39
void sql_perror(const char *message);
42
 
void sql_perror(const std::string &message);
43
 
void sql_perror(std::string message, const std::string &extra);
44
40
 
45
41
} /* namespace drizzled */
46
42