00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef _MISC_RADIUS_EXTRA_H_
00025 #define _MISC_RADIUS_EXTRA_H_
00026
00027 #include "../../str.h"
00028 #include "../../pvar.h"
00029 #include "../../parser/msg_parser.h"
00030 #include "../../lib/kcore/radius.h"
00031
00032 struct extra_attr {
00033 str name;
00034 pv_spec_t spec;
00035 struct extra_attr *next;
00036 };
00037
00038 #define MAX_EXTRA 4
00039
00040 void init_extra_engine(void);
00041
00042 struct extra_attr *parse_extra_str(char *extra);
00043
00044 void destroy_extras(struct extra_attr *extra);
00045
00046 int extra2strar(struct extra_attr *extra, struct sip_msg *rq, str *val_arr);
00047
00048 int extra2attrs(struct extra_attr *extra, struct attr *attrs, int offset);
00049
00050 #endif