Parser :: Route & Record-Route header field parser.
More...
#include <stdio.h>
#include "msg_parser.h"
#include "parse_nameaddr.h"
#include "parse_param.h"
#include "hf.h"
Go to the source code of this file.
Data Structures
- struct rr
- Structure representing a Route & Record-Route HF body. More...
Typedefs
-
typedef struct rr rr_t
- Structure representing a Route & Record-Route HF body.
Functions
-
int duplicate_rr (rr_t **_new, rr_t *_r)
- Duplicate a single rr_t structure using pkg_malloc.
-
void free_rr (rr_t **_r)
- Free list of rrs _r is head of the list.
- int get_path_dst_uri (str *_p, str *_dst)
- Path must be available.
-
int parse_rr (struct hdr_field *_r)
- Parse Route and Record-Route header fields.
-
int parse_rr_body (char *buf, int len, rr_t **head)
- Wrapper to do_parse_rr_body() for external calls.
-
void print_rr (FILE *_o, rr_t *_r)
- Print list of RRs, just for debugging.
-
int print_rr_body (struct hdr_field *iroute, str *oroute, int order, unsigned int *nb_recs)
- get first RR header and print comma separated bodies in oroute
- order = 0 normal; order = 1 reverse
- nb_recs - input=skip number of rr; output=number of printed rrs
-
int shm_duplicate_rr (rr_t **_new, rr_t *_r)
- Duplicate a single rr_t structure using pkg_malloc.
-
void shm_free_rr (rr_t **_r)
- Free list of rrs _r is head of the list.
Detailed Description
Definition in file parse_rr.h.
Function Documentation
| int get_path_dst_uri |
( |
str * |
_p, |
|
|
str * |
_dst | |
|
) |
| | |