summaryrefslogtreecommitdiff
path: root/local.h
diff options
context:
space:
mode:
Diffstat (limited to 'local.h')
-rw-r--r--local.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/local.h b/local.h
new file mode 100644
index 0000000..7ce218d
--- /dev/null
+++ b/local.h
@@ -0,0 +1,28 @@
+/**
+ * \file local.h
+ */
+
+#ifndef _LOCAL_H
+#define _LOCAL_H
+
+
+#include <stdio.h>
+
+#include "message.h"
+
+
+extern char *mda;
+extern FILE *mda_fp;
+
+
+/** Check whether it's a local or a remote address */
+int local_address(const char *address);
+
+/** Send a message locally (via a MDA) */
+int local_init(message_t *msg);
+
+int local_flush(message_t *msg);
+
+void local_cleanup(void);
+
+#endif