summaryrefslogtreecommitdiff
path: root/src/include/qmail.h
blob: 8e0ad3d5fde0c1b954408aa2db3facc6f0581b09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef QMAIL_H
#define QMAIL_H

#include "buffer.h"

struct qmail {
  int flagerr;
  unsigned long pid;
  int fdm;
  int fde;
  buffer ss;
  char buf[1024];
};

extern int qmail_open(struct qmail *);
extern void qmail_put(struct qmail *, char *, int);
extern void qmail_puts(struct qmail *, char *);
extern void qmail_from(struct qmail *, char *);
extern void qmail_to(struct qmail *, char *);
extern void qmail_fail(struct qmail *);
extern char *qmail_close(struct qmail *);
extern unsigned long qmail_qp(struct qmail *);

#endif