1 /** 2 * @file re_msg.h Interface to generic message components 3 * 4 * Copyright (C) 2010 Creytiv.com 5 */ 6 7 8 /** Content-Type */ 9 struct msg_ctype { 10 struct pl type; 11 struct pl subtype; 12 struct pl params; 13 }; 14 15 16 int msg_ctype_decode(struct msg_ctype *ctype, const struct pl *pl); 17 bool msg_ctype_cmp(const struct msg_ctype *ctype, 18 const char *type, const char *subtype); 19 20 int msg_param_decode(const struct pl *pl, const char *name, struct pl *val); 21 int msg_param_exists(const struct pl *pl, const char *name, struct pl *end); 22