/** \file qrschedule.h \brief definitions for common functions of remote scheduler Qrschedule */ #ifndef QRSCHEDULE_H #define QRSCHEDULE_H #include "dns.h" #include "qoff.h" /*! \struct recip Describes a single recipient for remote delicery. */ struct recip { char *address; /**< the destination address */ const char *domain; /**< the domain (pointer into address) */ unsigned int index; /**< original index in remote/ file */ q_off_t pos; /**< offset of status in remote/ file */ char *msg; /**< message the remote host sent */ struct ips *mx; /**< MX entries of domain */ struct recip *next; /**< next entry */ }; extern int rsend(const struct recip *, const int); extern int rschedule(struct recip *, const int); extern void freerecips(struct recip *, const unsigned int); extern int loadrecips(struct recip **, const unsigned int); #endif