Add qemu 2.4.0
[kvmfornfv.git] / qemu / roms / ipxe / src / include / ipxe / syslog.h
diff --git a/qemu/roms/ipxe/src/include/ipxe/syslog.h b/qemu/roms/ipxe/src/include/ipxe/syslog.h
new file mode 100644 (file)
index 0000000..1316926
--- /dev/null
@@ -0,0 +1,41 @@
+#ifndef _IPXE_SYSLOG_H
+#define _IPXE_SYSLOG_H
+
+/** @file
+ *
+ * Syslog protocol
+ *
+ */
+
+FILE_LICENCE ( GPL2_OR_LATER );
+
+#include <syslog.h>
+
+/** Syslog server port */
+#define SYSLOG_PORT 514
+
+/** Syslog line buffer size
+ *
+ * This is a policy decision
+ */
+#define SYSLOG_BUFSIZE 128
+
+/** Syslog default facility
+ *
+ * This is a policy decision
+ */
+#define SYSLOG_DEFAULT_FACILITY 0 /* kernel */
+
+/** Syslog default severity
+ *
+ * This is a policy decision
+ */
+#define SYSLOG_DEFAULT_SEVERITY LOG_INFO
+
+/** Syslog priority */
+#define SYSLOG_PRIORITY( facility, severity ) ( 8 * (facility) + (severity) )
+
+extern int syslog_send ( struct interface *xfer, unsigned int severity,
+                        const char *message, const char *terminator );
+
+#endif /* _IPXE_SYSLOG_H */