summaryrefslogtreecommitdiff
path: root/src/clamsmtpd.h
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2004-07-08 18:27:54 +0000
committerStef Walter <stef@memberwebs.com>2004-07-08 18:27:54 +0000
commitac7e532095160a85ca03476aa707ef80a8a8ce5b (patch)
tree4e331300e5f11192869e66b9f08e58c4cf13cce3 /src/clamsmtpd.h
parent17e2bbdacafb2c969d26a89ede3b57b60dc19bc1 (diff)
Initial import
Diffstat (limited to 'src/clamsmtpd.h')
-rw-r--r--src/clamsmtpd.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/clamsmtpd.h b/src/clamsmtpd.h
new file mode 100644
index 0000000..4931e5e
--- /dev/null
+++ b/src/clamsmtpd.h
@@ -0,0 +1,24 @@
+#ifndef __CLAMSMTPD_H__
+#define __CLAMSMTPD_H__
+
+/* A generous maximum line length. */
+#define LINE_LENGTH 2000
+
+typedef struct clamsmtp_context
+{
+ unsigned int id; /* Identifier for the connection */
+
+ int client; /* Connection to client */
+ int server; /* Connection to server */
+ int clam; /* Connection to clamd */
+
+ char line[LINE_LENGTH]; /* Working buffer */
+ int linelen; /* Length of valid data in above */
+}
+clamsmtp_context_t;
+
+extern int g_daemonized; /* Currently running as a daemon */
+extern int g_debuglevel; /* what gets logged to console */
+extern pthread_mutex_t g_mutex; /* The main mutex */
+
+#endif /* __CLAMSMTPD_H__ */