Mercurial > dovecot > original-hg > dovecot-1.2
annotate src/master/syslog-util.h @ 3863:55df57c028d4 HEAD
Added "bool" type and changed all ints that were used as booleans to bool.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Fri, 13 Jan 2006 22:25:57 +0200 |
parents | cf8933dabc95 |
children | e4eb71ae8e96 |
rev | line source |
---|---|
3725
cf8933dabc95
Forgot to add in syslog_facility commit
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
1 #ifndef __SYSLOG_UTIL_H |
cf8933dabc95
Forgot to add in syslog_facility commit
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
2 #define __SYSLOG_UTIL_H |
cf8933dabc95
Forgot to add in syslog_facility commit
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
3 |
cf8933dabc95
Forgot to add in syslog_facility commit
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
4 struct syslog_facility_list { |
cf8933dabc95
Forgot to add in syslog_facility commit
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
5 const char *name; |
cf8933dabc95
Forgot to add in syslog_facility commit
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
6 int facility; |
cf8933dabc95
Forgot to add in syslog_facility commit
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
7 }; |
cf8933dabc95
Forgot to add in syslog_facility commit
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
8 |
cf8933dabc95
Forgot to add in syslog_facility commit
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
9 extern struct syslog_facility_list syslog_facilities[]; |
cf8933dabc95
Forgot to add in syslog_facility commit
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
10 |
cf8933dabc95
Forgot to add in syslog_facility commit
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
11 /* Returns TRUE if found. */ |
3863
55df57c028d4
Added "bool" type and changed all ints that were used as booleans to bool.
Timo Sirainen <tss@iki.fi>
parents:
3725
diff
changeset
|
12 bool syslog_facility_find(const char *name, int *facility_r); |
3725
cf8933dabc95
Forgot to add in syslog_facility commit
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
13 |
cf8933dabc95
Forgot to add in syslog_facility commit
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
14 #endif |