encode_parameters.h File Reference

#include "../../parser/parse_param.h"

Include dependency graph for encode_parameters.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int encode_parameters (unsigned char *where, void *pars, char *hdrstart, void *_body, char to)
int print_encoded_parameters (FILE *fd, unsigned char *payload, char *hdr, int paylen, char *prefix)
param_treverseParameters (param_t *p)


Function Documentation

int encode_parameters ( unsigned char *  where,
void *  pars,
char *  hdrstart,
void *  _body,
char  to 
)

Returns how many bytes in *where have been used

TODO this is little shitty, someone should unify all the param flavours to a sigle universal type of parameter (to_param,param,disposition_param) the way is done here, at least, we dont have the parameter-hanling code spread all around.

Definition at line 57 of file encode_parameters.c.

References disposition_param::body, param::body, via_body::last_param, to_body::last_param, _str::len, via_param::name, disposition_param::name, param::name, to_param::name, via_param::next, disposition_param::next, param::next, to_param::next, params, REL_PTR, reverseParameters(), _str::s, via_param::value, and to_param::value.

Referenced by encode_contact(), encode_content_disposition(), encode_route(), encode_to_body(), encode_uri2(), and encode_via().

int print_encoded_parameters ( FILE *  fd,
unsigned char *  payload,
char *  hdr,
int  paylen,
char *  prefix 
)

param_t* reverseParameters ( param_t p  ) 

reverses a param_t linked-list

Definition at line 198 of file encode_parameters.c.

References param::next, and NULL.

Referenced by encode_parameters().


Generated on Wed May 23 06:01:02 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6