~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/errmsg_print.h

  • Committer: Brian Aker
  • Date: 2009-01-06 09:02:30 UTC
  • mfrom: (758.1.5 devel)
  • Revision ID: brian@tangent.org-20090106090230-ov94my79hsiz4bes
Merge from Monty

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
#ifndef DRIZZLED_ERRMSG_PRINT_H
26
26
#define DRIZZLED_ERRMSG_PRINT_H
27
27
 
28
 
void sql_print_error (const char *format, ...);
29
 
void sql_print_warning (const char *format, ...);
30
 
void sql_print_information (const char *format, ...);
 
28
//void sql_print_error (const char *format, ...);
 
29
//void sql_print_warning (const char *format, ...);
 
30
//void sql_print_information (const char *format, ...);
 
31
//void sql_perror (const char *message);
 
32
 
 
33
#define ERRMSG_LVL_DBUG 1
 
34
#define ERRMSG_LVL_INFO 2
 
35
#define ERRMSG_LVL_WARN 3
 
36
#define ERRMSG_LVL_ERROR 4
 
37
 
 
38
// todo: add __attribute__((format(printf, 1, 2)))
 
39
bool errmsg_printf (int priority, char const *format, ...);
 
40
 
31
41
void sql_perror (const char *message);
32
42
 
33
43
#endif /* DRIZZLED_ERRMSG_PRINT_H */