From 9c94642597f749e9ed44b3b6de4a1614c613a7da Mon Sep 17 00:00:00 2001 From: Pietro Cerutti Date: Fri, 10 May 2019 15:51:13 +0000 Subject: [PATCH] Define an AddressList structure using TAILQ --- address/address.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/address/address.h b/address/address.h index b40ac85ba..6f69851dd 100644 --- a/address/address.h +++ b/address/address.h @@ -25,6 +25,7 @@ #include #include +#include "mutt/queue.h" /** * struct Address - An email address @@ -39,6 +40,13 @@ struct Address struct Address *next; }; +struct AddressNode +{ + struct Address *addr; + TAILQ_ENTRY(AddressNode) entries; +}; +TAILQ_HEAD(AddressList, AddressNode); + /** * enum AddressError - possible values for AddressError */ -- 2.40.0