~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/errmsg_print.h

  • Committer: Mark Atwood
  • Date: 2012-01-04 16:59:32 UTC
  • mfrom: (2478.2.3 real-key-use-catalog)
  • Revision ID: me@mark.atwood.name-20120104165932-cm0xqs4by0u3p4cy
mergeĀ lp:~stewart/drizzle/key-use-catalog

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
 
25
25
 
26
26
 
27
 
#ifndef DRIZZLED_ERRMSG_PRINT_H
28
 
#define DRIZZLED_ERRMSG_PRINT_H
 
27
#pragma once
29
28
 
30
29
#include <drizzled/visibility.h>
31
 
#include <drizzled/error/level_t.h>
 
30
#include <drizzled/error/priority_t.h>
32
31
 
33
32
#include <string>
34
33
 
35
34
namespace drizzled
36
35
{
37
36
 
38
 
DRIZZLED_API bool errmsg_printf(error::level_t priority, char const *format, ...)
 
37
DRIZZLED_API bool errmsg_printf(error::priority_t priority, char const *format, ...)
39
38
  __attribute__((format(printf, 2, 3)));
40
39
 
41
 
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);
 
40
DRIZZLED_API void sql_perror(const char *message);
 
41
DRIZZLED_API void sql_perror(const std::string &message);
 
42
DRIZZLED_API void sql_perror(std::string message, const std::string &extra);
44
43
 
45
44
} /* namespace drizzled */
46
45
 
47
 
#endif /* DRIZZLED_ERRMSG_PRINT_H */
48
46
 
49
47