File: re_msg.h

package info (click to toggle)
libre 2.0.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,556 kB
  • sloc: ansic: 41,621; makefile: 143; sh: 1
file content (21 lines) | stat: -rw-r--r-- 525 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/**
 * @file re_msg.h  Interface to generic message components
 *
 * Copyright (C) 2010 Creytiv.com
 */


/** Content-Type */
struct msg_ctype {
	struct pl type;
	struct pl subtype;
	struct pl params;
};


int  msg_ctype_decode(struct msg_ctype *ctype, const struct pl *pl);
bool msg_ctype_cmp(const struct msg_ctype *ctype,
		   const char *type, const char *subtype);

int msg_param_decode(const struct pl *pl, const char *name, struct pl *val);
int msg_param_exists(const struct pl *pl, const char *name, struct pl *end);