~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/syslog/wrap.h

  • Committer: Lee Bieber
  • Date: 2010-11-14 23:15:42 UTC
  • mfrom: (1929.1.42 warning-stack-frame)
  • Revision ID: kalebral@gmail.com-20101114231542-fnnu6ydd2p17n582
Merge Monty - fix bug 672372: some functions use > 32k stack

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
#include <stdarg.h>
24
24
 
25
 
#include <string>
26
 
 
27
 
namespace drizzle_plugin
28
 
{
29
 
 
30
25
class WrapSyslog
31
26
{
32
 
private:
33
 
  bool _check;
34
 
 
 
27
 private:
35
28
  WrapSyslog(const WrapSyslog&);
36
29
  WrapSyslog& operator=(const WrapSyslog&);
37
30
 
38
31
  WrapSyslog();
39
32
 
 
33
  bool openlog_check;
 
34
  char openlog_ident[32];
40
35
 
41
 
public:
 
36
 public:
42
37
  ~WrapSyslog();
43
38
  static WrapSyslog& singleton();
44
39
 
45
40
  static int getFacilityByName(const char *);
46
41
  static int getPriorityByName(const char *);
47
42
 
48
 
  void openlog(const std::string &ident);
 
43
  void openlog(char *ident);
49
44
  void vlog(int facility, int priority, const char *format, va_list ap);
50
45
  void log(int facility, int priority, const char *format, ...);
51
46
};
52
47
 
53
 
inline WrapSyslog& WrapSyslog::singleton()
54
 
{
55
 
  static WrapSyslog handle;
56
 
  return handle;
57
 
}
58
 
 
59
 
} /* namespsace drizzle_plugin */
60
 
 
61
48
#endif /* PLUGIN_SYSLOG_WRAP_H */