1 #define LWS_SMTP_MAX_EMAIL_LEN 32 2 3 4 /* 5 * These are allocated on to the heap with an over-allocation to hold the 6 * payload at the end 7 */ 8 9 typedef struct lws_smtp_email { 10 struct lws_dll2 list; 11 void *data; 12 13 char from[LWS_SMTP_MAX_EMAIL_LEN]; 14 char to[LWS_SMTP_MAX_EMAIL_LEN]; 15 16 time_t added; 17 time_t last_try; 18 19 lws_smtp_cb_t done; 20 21 int tries; 22 23 /* email payload follows */ 24 } lws_smtp_email_t; 25