summaryrefslogtreecommitdiffstats
path: root/lib/cee-syslog.h
diff options
context:
space:
mode:
authorGergely Nagy <algernon@madhouse-project.org>2012-03-20 07:55:22 +0100
committerGergely Nagy <algernon@madhouse-project.org>2012-03-20 07:55:22 +0100
commit6627c0249ed53580a173e7b0190937c14fc2d2cd (patch)
tree95023d3b80f7b92f2224bdfbb051dd318bcc3950 /lib/cee-syslog.h
parent7ffd832758c8284bc95aecfc6d88705b80edab64 (diff)
Implement a wrapper for setlogmask()
Since we'd like to avoid doing useless work during logging, wrap setlogmask() too, and save the mask set, so during _cee_vsyslog(), we can bail out early, if our priority is not set in the mask. Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
Diffstat (limited to 'lib/cee-syslog.h')
-rw-r--r--lib/cee-syslog.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/cee-syslog.h b/lib/cee-syslog.h
index 4f70b06..171f3ae 100644
--- a/lib/cee-syslog.h
+++ b/lib/cee-syslog.h
@@ -38,6 +38,7 @@ char *cee_format (int priority, const char *msg_format, ...);
char *cee_vformat (int priority, const char *msg_format, va_list ap);
void cee_openlog (const char *ident, int option, int facility);
+int cee_setlogmask (int mask);
void cee_syslog (int priority, const char *msg_format, ...);
void cee_vsyslog (int priority, const char *msg_format, va_list ap);