@@ -120,29 +120,25 @@ void mem_delete_urecord(udomain_t* _d, struct urecord* _r);
120
120
/*! \brief
121
121
* Locks the domain hash entrie corresponding to AOR
122
122
*/
123
- typedef void (* lock_udomain_t )(udomain_t * _d , str * _aor );
124
123
void lock_udomain (udomain_t * _d , str * _aor );
125
124
126
125
127
126
/*! \brief
128
127
* Unlocks the domain hash entrie corresponding to AOR
129
128
*/
130
- typedef void (* unlock_udomain_t )(udomain_t * _d , str * _aor );
131
129
void unlock_udomain (udomain_t * _d , str * _aor );
132
130
133
131
struct ucontact * get_ucontact_from_id (udomain_t * d , uint64_t contact_id , struct urecord * * _r );
134
132
135
133
/*! \brief
136
134
* Locks the specific domain hash entrie
137
135
*/
138
- typedef void (* lock_ulslot_t )(udomain_t * _d , int slot );
139
136
void lock_ulslot (udomain_t * _d , int slot );
140
137
141
138
142
139
/*! \brief
143
140
* Unlocks the specific domain hash entrie
144
141
*/
145
- typedef void (* unlock_ulslot_t )(udomain_t * _d , int slot );
146
142
void unlock_ulslot (udomain_t * _d , int slot );
147
143
#define _unlock_ulslot (domain , contact_id ) \
148
144
do { \
@@ -158,23 +154,18 @@ void unlock_ulslot(udomain_t* _d, int slot);
158
154
/*! \brief
159
155
* Create and insert a new record
160
156
*/
161
- typedef int (* insert_urecord_t )(udomain_t * _d , str * _aor , struct urecord * * _r ,
162
- char is_replicated );
163
157
int insert_urecord (udomain_t * _d , str * _aor , struct urecord * * _r ,
164
- char is_replicated );
158
+ char skip_replication );
165
159
166
160
/*! \brief
167
161
* Obtain a urecord pointer if the urecord exists in domain
168
162
*/
169
- typedef int (* get_urecord_t )(udomain_t * _d , str * _a , struct urecord * * _r );
170
163
int get_urecord (udomain_t * _d , str * _aor , struct urecord * * _r );
171
164
172
165
/*! \brief
173
166
* Only relevant in a federation @cluster_mode.
174
167
* Obtain urecord pointer if AoR exists in at least one location.
175
168
*/
176
- typedef int
177
- (* get_global_urecord_t )(udomain_t * _d , str * _a , struct urecord * * _r );
178
169
int get_global_urecord (udomain_t * _d , str * _aor , struct urecord * * _r );
179
170
180
171
int cdb_update_urecord_metadata (const str * _aor , int unpublish );
@@ -183,9 +174,7 @@ int cdb_update_urecord_metadata(const str *_aor, int unpublish);
183
174
/*! \brief
184
175
* Delete a urecord from domain
185
176
*/
186
- typedef int (* delete_urecord_t )(udomain_t * _d , str * _a , struct urecord * _r ,
187
- char is_replicated );
188
177
int delete_urecord (udomain_t * _d , str * _aor , struct urecord * _r ,
189
- char is_replicated );
178
+ char skip_replication );
190
179
191
180
#endif /* UDOMAIN_H */
0 commit comments