encode_content_type.c File Reference

#include <stdio.h>
#include <netinet/in.h>
#include <string.h>
#include "../../parser/parse_content.h"
#include "encode_content_type.h"

Include dependency graph for encode_content_type.c:

Go to the source code of this file.

Defines

#define _GNU_SOURCE

Functions

int encode_accept (char *hdrstart, int hdrlen, unsigned int *bodi, char *where)
int encode_content_type (char *hdrstart, int hdrlen, unsigned int bodi, char *where)
int encode_mime_type (char *hdrstart, int hdrlen, unsigned int bodi, char *where)
int print_encoded_accept (FILE *fd, char *hdr, int hdrlen, unsigned char *payload, int paylen, char *prefix)
int print_encoded_content_type (FILE *fd, char *hdr, int hdrlen, unsigned char *payload, int paylen, char *prefix)
int print_encoded_mime_type (FILE *fd, char *hdr, int hdrlen, unsigned int *payload, int paylen, char *prefix)


Define Documentation

#define _GNU_SOURCE

Definition at line 40 of file encode_content_type.c.


Function Documentation

int encode_accept ( char *  hdrstart,
int  hdrlen,
unsigned int *  bodi,
char *  where 
)

Definition at line 59 of file encode_content_type.c.

References encode_mime_type().

Referenced by encode_header().

int encode_content_type ( char *  hdrstart,
int  hdrlen,
unsigned int  bodi,
char *  where 
)

Definition at line 47 of file encode_content_type.c.

References encode_mime_type().

Referenced by encode_header().

int encode_mime_type ( char *  hdrstart,
int  hdrlen,
unsigned int  bodi,
char *  where 
)

Definition at line 83 of file encode_content_type.c.

References sip_uri::type.

Referenced by encode_accept(), and encode_content_type().

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

Definition at line 71 of file encode_content_type.c.

References print_encoded_mime_type(), and sip_uri::type.

Referenced by print_encoded_header().

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

Definition at line 52 of file encode_content_type.c.

References print_encoded_mime_type(), and sip_uri::type.

Referenced by print_encoded_header().

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


Generated on Tue May 22 16:00:39 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6