~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/errmsg_print.h

  • Committer: Monty Taylor
  • Date: 2009-01-05 22:31:09 UTC
  • mfrom: (755.2.2 drizzle-work)
  • mto: This revision was merged to the branch mainline in revision 759.
  • Revision ID: mordred@inaugust.com-20090105223109-fhqvb830ftho6r6i
MergedĀ fromĀ Mark.

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 */