diff options
Diffstat (limited to 'daemon/syslogd.h')
-rw-r--r-- | daemon/syslogd.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/daemon/syslogd.h b/daemon/syslogd.h index 8919ede..20dfa00 100644 --- a/daemon/syslogd.h +++ b/daemon/syslogd.h @@ -106,7 +106,8 @@ struct source enum destination_type { DT_UNDEFINED, - DT_FILE + DT_FILE, + DT_RELAY }; enum rotation_period @@ -130,6 +131,12 @@ struct destination_file gchar *compressoptions; }; +struct destination_relay +{ + gchar *collector; + gboolean omit_hostname; +}; + struct destination; typedef void (*dest_put)( struct destination* destination, struct message* message ); @@ -142,6 +149,7 @@ struct destination union { struct destination_file file; + struct destination_relay relay; } u; void *extra; /* methods */ @@ -171,6 +179,7 @@ extern GList *logpaths; extern gboolean read_configuration(); extern gboolean init_destination_file( struct destination* destination ); +extern gboolean init_destination_relay( struct destination* destination ); /* queue */ struct fifo_item |