Browse code

ims_charging: remove inline to functions that break the symbol linking

Daniel-Constantin Mierla authored on 09/12/2017 12:49:35
Showing 1 changed files
... ...
@@ -83,7 +83,7 @@ void init_custom_user(pv_spec_t *custom_user_avp_p)
83 83
  * \param custom_user to be returned
84 84
  * \return <0 for failure
85 85
  */
86
-inline static int get_custom_user(struct sip_msg *req, str *custom_user) {
86
+static int get_custom_user(struct sip_msg *req, str *custom_user) {
87 87
 	pv_value_t pv_val;
88 88
 
89 89
 	if (custom_user_avp) {
... ...
@@ -121,7 +121,7 @@ void credit_control_session_callback(int event, void* session) {
121 121
  * @param func - the name of the calling function, for debugging purposes
122 122
  * @returns 1 on success or 0 on failure
123 123
  */
124
-inline int Ro_add_avp_list(AAA_AVP_LIST *list, char *d, int len, int avp_code,
124
+int Ro_add_avp_list(AAA_AVP_LIST *list, char *d, int len, int avp_code,
125 125
         int flags, int vendorid, int data_do, const char *func) {
126 126
     AAA_AVP *avp;
127 127
     if (vendorid != 0) flags |= AAA_AVP_FLAG_VENDOR_SPECIFIC;
... ...
@@ -145,7 +145,7 @@ inline int Ro_add_avp_list(AAA_AVP_LIST *list, char *d, int len, int avp_code,
145 145
     return 1;
146 146
 }
147 147
 
148
-inline int Ro_add_cc_request(AAAMessage *msg, unsigned int cc_request_type, unsigned int cc_request_number) {
148
+int Ro_add_cc_request(AAAMessage *msg, unsigned int cc_request_type, unsigned int cc_request_number) {
149 149
     char x[4];
150 150
     set_4bytes(x, cc_request_type);
151 151
     int success = Ro_add_avp(msg, x, 4, AVP_CC_Request_Type, AAA_AVP_FLAG_MANDATORY, 0, AVP_DUPLICATE_DATA, __FUNCTION__);
... ...
@@ -157,7 +157,7 @@ inline int Ro_add_cc_request(AAAMessage *msg, unsigned int cc_request_type, unsi
157 157
 
158 158
 }
159 159
 
160
-inline int Ro_add_event_timestamp(AAAMessage *msg, time_t now) {
160
+int Ro_add_event_timestamp(AAAMessage *msg, time_t now) {
161 161
     char x[4];
162 162
     str s = {x, 4};
163 163
     uint32_t ntime = htonl(now + EPOCH_UNIX_TO_EPOCH_NTP);
... ...
@@ -167,7 +167,7 @@ inline int Ro_add_event_timestamp(AAAMessage *msg, time_t now) {
167 167
 
168 168
 }
169 169
 
170
-inline int Ro_add_user_equipment_info(AAAMessage *msg, unsigned int type, str value) {
170
+int Ro_add_user_equipment_info(AAAMessage *msg, unsigned int type, str value) {
171 171
     AAA_AVP_LIST list;
172 172
     str group;
173 173
     char x[4];
... ...
@@ -187,7 +187,7 @@ inline int Ro_add_user_equipment_info(AAAMessage *msg, unsigned int type, str va
187 187
     return Ro_add_avp(msg, group.s, group.len, AVP_User_Equipment_Info, AAA_AVP_FLAG_MANDATORY, 0, AVP_FREE_DATA, __FUNCTION__);
188 188
 }
189 189
 
190
-inline int Ro_add_termination_cause(AAAMessage *msg, unsigned int term_code) {
190
+int Ro_add_termination_cause(AAAMessage *msg, unsigned int term_code) {
191 191
     char x[4];
192 192
     str s = {x, 4};
193 193
     uint32_t code = htonl(term_code);
... ...
@@ -196,7 +196,7 @@ inline int Ro_add_termination_cause(AAAMessage *msg, unsigned int term_code) {
196 196
     return Ro_add_avp(msg, s.s, s.len, AVP_Termination_Cause, AAA_AVP_FLAG_MANDATORY, 0, AVP_DUPLICATE_DATA, __FUNCTION__);
197 197
 }
198 198
 
199
-inline int Ro_add_vendor_specific_termination_cause(AAAMessage *msg, unsigned int term_code) {
199
+int Ro_add_vendor_specific_termination_cause(AAAMessage *msg, unsigned int term_code) {
200 200
     char x[4];
201 201
     str s = {x, 4};
202 202
     uint32_t code = htonl(term_code);
... ...
@@ -205,14 +205,14 @@ inline int Ro_add_vendor_specific_termination_cause(AAAMessage *msg, unsigned in
205 205
     return Ro_add_avp(msg, s.s, s.len, VS_TERMCODE, AAA_AVP_FLAG_VENDOR_SPECIFIC, 10, AVP_DUPLICATE_DATA, __FUNCTION__);
206 206
 }
207 207
 
208
-inline int Ro_add_vendor_specific_termination_reason(AAAMessage *msg, str* reason) {
208
+int Ro_add_vendor_specific_termination_reason(AAAMessage *msg, str* reason) {
209 209
     return Ro_add_avp(msg, reason->s, reason->len, VS_TERMREASON, AAA_AVP_FLAG_VENDOR_SPECIFIC, 10, AVP_DUPLICATE_DATA, __FUNCTION__);
210 210
 }
211 211
 
212 212
 
213 213
 
214 214
 /* called only when building stop record AVPS */
215
-inline int Ro_add_multiple_service_credit_Control_stop(AAAMessage *msg, int used_unit, int active_rating_group, int active_service_identifier) {
215
+int Ro_add_multiple_service_credit_Control_stop(AAAMessage *msg, int used_unit, int active_rating_group, int active_service_identifier) {
216 216
     char x[4];
217 217
     AAA_AVP_LIST used_list, mscc_list;
218 218
     str used_group;
... ...
@@ -254,7 +254,7 @@ inline int Ro_add_multiple_service_credit_Control_stop(AAAMessage *msg, int used
254 254
     return Ro_add_avp(msg, used_group.s, used_group.len, AVP_Multiple_Services_Credit_Control, AAA_AVP_FLAG_MANDATORY, 0, AVP_FREE_DATA, __FUNCTION__);
255 255
 }
256 256
 
257
-inline int Ro_add_multiple_service_credit_Control(AAAMessage *msg, unsigned int requested_unit, int used_unit, int active_rating_group, int active_service_identifier) {
257
+int Ro_add_multiple_service_credit_Control(AAAMessage *msg, unsigned int requested_unit, int used_unit, int active_rating_group, int active_service_identifier) {
258 258
     // Add Multiple-Services AVP Indicator
259 259
     char x[4];
260 260
     set_4bytes(x, 1);
... ...
@@ -301,7 +301,7 @@ inline int Ro_add_multiple_service_credit_Control(AAAMessage *msg, unsigned int
301 301
     return Ro_add_avp(msg, group.s, group.len, AVP_Multiple_Services_Credit_Control, AAA_AVP_FLAG_MANDATORY, 0, AVP_FREE_DATA, __FUNCTION__);
302 302
 }
303 303
 
304
-inline int Ro_add_subscription_id(AAAMessage *msg, unsigned int type, str *subscription_id)//, struct sip_msg* sip_msg)
304
+int Ro_add_subscription_id(AAAMessage *msg, unsigned int type, str *subscription_id)//, struct sip_msg* sip_msg)
305 305
 {
306 306
     AAA_AVP_LIST list;
307 307
     str group;
... ...
@@ -330,7 +330,7 @@ inline int Ro_add_subscription_id(AAAMessage *msg, unsigned int type, str *subsc
330 330
  * @param acct_id - the accounting application id
331 331
  * @returns 1 on success or 0 on error
332 332
  */
333
-inline int Ro_add_vendor_specific_appid(AAAMessage *msg, unsigned int vendor_id, unsigned int auth_id, unsigned int acct_id) {
333
+int Ro_add_vendor_specific_appid(AAAMessage *msg, unsigned int vendor_id, unsigned int auth_id, unsigned int acct_id) {
334 334
     AAA_AVP_LIST list;
335 335
     str group;
336 336
     char x[4];