~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/rpl_reporting.h

  • Committer: Monty Taylor
  • Date: 2008-10-16 06:32:30 UTC
  • mto: (511.1.5 codestyle)
  • mto: This revision was merged to the branch mainline in revision 521.
  • Revision ID: monty@inaugust.com-20081016063230-4brxsra0qsmsg84q
Added -Wunused-macros.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#ifndef RPL_REPORTING_H
2
 
#define RPL_REPORTING_H
 
1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
 
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
 
3
 *
 
4
 *  Copyright (C) 2008 Sun Microsystems
 
5
 *
 
6
 *  This program is free software; you can redistribute it and/or modify
 
7
 *  it under the terms of the GNU General Public License as published by
 
8
 *  the Free Software Foundation; version 2 of the License.
 
9
 *
 
10
 *  This program is distributed in the hope that it will be useful,
 
11
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
13
 *  GNU General Public License for more details.
 
14
 *
 
15
 *  You should have received a copy of the GNU General Public License
 
16
 *  along with this program; if not, write to the Free Software
 
17
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
18
 */
 
19
 
 
20
#ifndef DRIZZLED_RPL_REPORTING_H
 
21
#define DRIZZLED_RPL_REPORTING_H
3
22
 
4
23
/**
5
24
   Maximum size of an error message from a slave thread.
37
56
                        printf() format.
38
57
  */
39
58
  void report(loglevel level, int err_code, const char *msg, ...) const
40
 
    ATTRIBUTE_FORMAT(printf, 4, 5);
 
59
    __attribute__((format(printf, 4, 5)));
41
60
 
42
61
  /**
43
62
     Clear errors. They will not show up under <code>SHOW SLAVE
65
84
    }
66
85
 
67
86
    /** Error code */
68
 
    uint32 number;
 
87
    uint32_t number;
69
88
    /** Error message */
70
89
    char message[MAX_SLAVE_ERRMSG];
71
90
  };
81
100
  char const *const m_thread_name;
82
101
};
83
102
 
84
 
#endif // RPL_REPORTING_H
85
 
 
 
103
#endif /* DRIZZLED_RPL_REPORTING_H */