1 /* 2 mairix - message index builder and finder for maildir folders. 3 4 ********************************************************************** 5 * Copyright (C) Richard P. Curnow 2006,2010 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of version 2 of the GNU General Public License as 9 * published by the Free Software Foundation. 10 * 11 * This program is distributed in the hope that it will be useful, but 12 * WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 * General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public License along 17 * with this program; if not, write to the Free Software Foundation, Inc., 18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 19 * 20 ********************************************************************** 21 */ 22 23 #ifndef NVP_H 24 #define NVP_H 25 26 struct nvp; 27 struct msg_src; 28 extern struct nvp *make_nvp(struct msg_src *, char *, const char *); 29 extern void free_nvp(struct nvp *); 30 extern void nvp_dump(struct nvp *nvp, FILE *out); 31 extern const char *nvp_major(struct nvp *n); 32 extern const char *nvp_minor(struct nvp *n); 33 extern const char *nvp_first(struct nvp *n); 34 extern const char *nvp_lookup(struct nvp *n, const char *name); 35 extern const char *nvp_lookupcase(struct nvp *n, const char *name); 36 37 #endif 38 39