~ubuntu-branches/ubuntu/gutsy/syslog-ng/gutsy-updates

« back to all changes in this revision

Viewing changes to src/log.h

  • Committer: Bazaar Package Importer
  • Author(s): Magosányi Árpád (mag)
  • Date: 2004-03-13 18:35:37 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040313183537-g0fsc2j2y1wbxage
Tags: 1.6.2-3
* changed manpage to better reflect -v. Closes: #228377
* fixed build-depends, hopefully correctly now:( Closes: #237668

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 *
20
20
 * Inspired by nsyslog, originally written by Darren Reed.
21
21
 *
22
 
 * $Id: log.h,v 1.15 2001/02/24 12:38:03 bazsi Exp $
 
22
 * $Id: log.h,v 1.19 2003/01/08 09:31:37 bazsi Exp $
23
23
 *
24
24
 ***************************************************************************/
25
25
 
30
30
#include "io.h"
31
31
 
32
32
#include <sys/time.h>
 
33
#include <regex.h>
33
34
 
34
35
struct syslog_config;
35
36
struct persistent_config;
46
47
        struct ol_string *date;
47
48
        struct ol_string *program;
48
49
        struct ol_string *host;
 
50
        struct ol_string *host_from;
49
51
};
50
52
 
51
53
#define CLASS_DECLARE
55
57
#define LF_INTERNAL           0x0001
56
58
#define LF_MARK               0x0002
57
59
#define LF_LOCAL              0x0004
 
60
#define LF_CHECK_HOSTNAME     0x0100
 
61
 
 
62
#define LF_USER_FLAGS 0xff00
58
63
 
59
64
/* CLASS:
60
65
     (class
85
90
struct log_info *log_info_use(struct log_info *msg);
86
91
void log_info_free(struct log_info *msg);
87
92
 
88
 
struct log_info *make_log_info(UINT32 length, UINT8 *data);
 
93
struct log_info *make_log_info(UINT32 length, UINT8 *data, UINT8 *prefix, UINT32 flags, regex_t *badhostname_re);
89
94
struct log_info *make_internal_message(UINT32 pri, UINT32 length, UINT8 *data);
90
95
struct log_info *make_mark_message(void);
91
96