aboutsummaryrefslogtreecommitdiffstats
path: root/fetchmail.h
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2011-05-04 12:22:52 +0200
committerMatthias Andree <matthias.andree@gmx.de>2011-05-04 12:22:52 +0200
commit002be7a0f5bddce96e52f6f66a7e2449987ef48c (patch)
tree7b41c25b2b4e8284512f445aca4480e17630e7a1 /fetchmail.h
parent38c2bcf5da548b953063fd651ec3d0ebb52c73f8 (diff)
downloadfetchmail-002be7a0f5bddce96e52f6f66a7e2449987ef48c.tar.gz
fetchmail-002be7a0f5bddce96e52f6f66a7e2449987ef48c.tar.bz2
fetchmail-002be7a0f5bddce96e52f6f66a7e2449987ef48c.zip
Document transact.c, RecvSplit.
Diffstat (limited to 'fetchmail.h')
-rw-r--r--fetchmail.h17
1 files changed, 10 insertions, 7 deletions
diff --git a/fetchmail.h b/fetchmail.h
index fcab0e59..d759d391 100644
--- a/fetchmail.h
+++ b/fetchmail.h
@@ -402,11 +402,11 @@ struct query
struct query *next; /* next query control block in chain */
};
-struct msgblk /* message header parsed for open_sink() */
+struct msgblk /** message header parsed for open_sink() */
{
- char *headers; /* raw message headers */
- struct idlist *recipients; /* addressees */
- char return_path[HOSTLEN + USERNAMELEN + 4];
+ char *headers; /**< raw message headers */
+ struct idlist *recipients; /**< addressees */
+ char return_path[HOSTLEN + USERNAMELEN + 4]; /**< envelope sender */
int msglen;
int reallen;
};
@@ -517,11 +517,14 @@ void resetidletimeout(void);
int do_protocol(struct query *, const struct method *);
/* transact.c: transaction support */
+/** \ingroup gen_recv_split
+ * Data structure to cache data between \func gen_recv_split calls,
+ * must be initialized before use by calling \func gen_recv_split_init. */
struct RecvSplit
{
- char prefix[100];
- int cached;
- char buf[MSGBUFSIZE];
+ char prefix[100]; /**< prefix to match/repeat when splitting lines */
+ int cached; /**< flag to record if we have data cached in \a buf */
+ char buf[MSGBUFSIZE]; /**< buffer for cached data */
};
void init_transact(const struct method *);