Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00034 #ifndef _PARSE_DISPOSITION_H_
00035 #define _PARSE_DISPOSITION_H_
00036
00037 #include "../str.h"
00038 #include "msg_parser.h"
00039
00040
00041 #define get_content_disposition(_msg_) \
00042 ((struct disposition*)((_msg_)->content_disposition->parsed))
00043
00044
00045 struct disposition_param {
00046 str name;
00047 str body;
00048 int is_quoted;
00049 struct disposition_param *next;
00050 };
00051
00052
00053 struct disposition {
00054 str type;
00055 struct disposition_param *params;
00056 };
00057
00058
00066 int parse_content_disposition( struct sip_msg *msg );
00067
00068
00072 int parse_disposition( str *s, struct disposition *disp);
00073
00074
00076 void free_disposition( struct disposition **disp);
00077
00079 void print_disposition( struct disposition *disp);
00080
00081 #endif
00082