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
00029 #ifndef URECORD_H
00030 #define URECORD_H
00031
00032
00033 #include <stdio.h>
00034 #include <time.h>
00035 #include "hslot.h"
00036 #include "../../str.h"
00037 #include "../../qvalue.h"
00038 #include "ucontact.h"
00039 #include "../usrloc/usrloc.h"
00040
00048 int new_urecord(str* _dom, str* _aor, urecord_t** _r);
00049
00050
00059 void free_urecord(urecord_t* _r);
00060
00061
00067 void print_urecord(FILE* _f, urecord_t* _r);
00068
00069
00080 ucontact_t* mem_insert_ucontact(urecord_t* _r, str* _c, ucontact_info_t* _ci);
00081
00082
00088 void mem_remove_ucontact(urecord_t* _r, ucontact_t* _c);
00089
00090
00096 void mem_delete_ucontact(urecord_t* _r, ucontact_t* _c);
00097
00098
00106 void timer_urecord(urecord_t* _r);
00107
00108
00114 int db_delete_urecord(struct udomain* _d, urecord_t* _r);
00115
00124 int insert_ucontact(urecord_t* _r, str* _contact,
00125 ucontact_info_t* _ci, ucontact_t** _c);
00126
00127
00134 int delete_ucontact(urecord_t* _r, struct ucontact* _c);
00135
00136
00148 int get_ucontact(urecord_t* _r, str* _c, str* _callid, str* _path,
00149 int _cseq,
00150 struct ucontact** _co);
00151
00152
00153
00154
00163 void release_urecord(urecord_t* _r);
00164
00165
00166
00167 #endif