aboutsummaryrefslogtreecommitdiffstats
path: root/daemon/syslogd.h
diff options
context:
space:
mode:
authoryaworsky <yaworsky>2005-10-26 04:59:51 +0000
committeryaworsky <yaworsky>2005-10-26 04:59:51 +0000
commit0f6fa595431267af5550a1b937b20f68957ca33f (patch)
tree0f7d4fab32930067e9b751e2df518df9997804d4 /daemon/syslogd.h
parent2bc65a6d5b3aa6c33e0322b6bcb786841859262b (diff)
downloadsyslog-win32-0f6fa595431267af5550a1b937b20f68957ca33f.tar.gz
syslog-win32-0f6fa595431267af5550a1b937b20f68957ca33f.tar.xz
syslog-win32-0f6fa595431267af5550a1b937b20f68957ca33f.zip
Implemented relaying.
Diffstat (limited to '')
-rw-r--r--daemon/syslogd.h11
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