Lines Matching refs:error

53     int *error)
58 if (error != NULL)
59 *error = 0;
61 if (error != NULL)
62 *error = EINVAL;
70 if (sip_hdr == NULL && error != NULL)
71 *error = EINVAL;
79 sip_reqline_to_str(sip_msg_t sip_msg, int *error)
83 if (error != NULL)
84 *error = 0;
85 if (sip_msg == NULL || !sip_msg_is_request(sip_msg, error)) {
86 if (error != NULL)
87 *error = EINVAL;
90 reqstr = _sip_startline_to_str((_sip_msg_t *)sip_msg, error);
98 sip_respline_to_str(sip_msg_t sip_msg, int *error)
102 if (error != NULL)
103 *error = 0;
104 if (sip_msg == NULL || sip_msg_is_request(sip_msg, error)) {
105 if (error != NULL)
106 *error = EINVAL;
109 respstr = _sip_startline_to_str((_sip_msg_t *)sip_msg, error);
117 sip_get_header_value(const struct sip_header *sip_header, int *error)
124 if (error != NULL)
125 *error = 0;
127 if (error != NULL)
128 *error = EINVAL;
141 if (error != NULL)
142 *error = EINVAL;
151 if (error != NULL)
152 *error = ret;
160 error != NULL) {
161 *error = EPROTO;
170 sip_get_next_value(sip_header_value_t old_value, int *error)
174 if (error != NULL)
175 *error = 0;
177 if (error != NULL)
178 *error = EINVAL;
188 error != NULL) {
189 *error = EPROTO;
368 int *error)
373 if (error != NULL)
374 *error = 0;
376 if (error != NULL)
377 *error = EINVAL;
382 if (error != NULL)
383 *error = EINVAL;
387 if (error != NULL)
388 *error = EINVAL;
402 sip_get_params(sip_header_value_t header_value, int *error)
406 if (error != NULL)
407 *error = 0;
409 if (error != NULL)
410 *error = EINVAL;
415 if (error != NULL)
416 *error = EINVAL;
426 sip_msg_is_request(sip_msg_t sip_msg, int *error)
432 if (error != NULL)
433 *error = 0;
435 if (error != NULL)
436 *error = EINVAL;
443 if (error != NULL)
444 *error = EINVAL;
457 sip_msg_is_response(sip_msg_t sip_msg, int *error)
463 if (error != NULL)
464 *error = 0;
466 if (error != NULL)
467 *error = EINVAL;
474 if (error != NULL)
475 *error = EINVAL;
488 sip_get_request_method(sip_msg_t sip_msg, int *error)
494 if (error != NULL)
495 *error = 0;
497 if (error != NULL)
498 *error = EINVAL;
506 if (error != NULL)
507 *error = EINVAL;
512 else if (error != NULL)
513 *error = EINVAL;
522 sip_get_request_uri_str(sip_msg_t sip_msg, int *error)
529 if (error != NULL)
530 *error = 0;
532 if (error != NULL)
533 *error = EINVAL;
540 if (error != NULL)
541 *error = EINVAL;
550 * If the error is required, check the validity of the URI via
553 if (error != NULL) {
554 parsed_uri = sip_parse_uri(ret, error);
565 sip_get_response_code(sip_msg_t sip_msg, int *error)
571 if (error != NULL)
572 *error = 0;
574 if (error != NULL)
575 *error = EINVAL;
582 if (error != NULL)
583 *error = EINVAL;
589 else if (error != NULL)
590 *error = EINVAL;
599 sip_get_response_phrase(sip_msg_t sip_msg, int *error)
605 if (error != NULL)
606 *error = 0;
608 if (error != NULL)
609 *error = EINVAL;
616 if (error != NULL)
617 *error = EINVAL;
627 } else if (error != NULL) {
628 *error = EINVAL;
637 sip_get_sip_version(sip_msg_t sip_msg, int *error)
643 if (error != NULL)
644 *error = 0;
646 if (error != NULL)
647 *error = EINVAL;
654 if (error != NULL)
655 *error = EINVAL;
668 sip_get_msg_len(sip_msg_t sip_msg, int *error)
672 if (error != NULL)
673 *error = 0;
675 if (error != NULL)
676 *error = EINVAL;
688 sip_get_content(sip_msg_t sip_msg, int *error)
696 if (error != NULL)
697 *error = 0;
700 if (error != NULL)
701 *error = EINVAL;
708 if (error != NULL)
709 *error = EINVAL;
715 if (error != NULL)
716 *error = ENOMEM;
834 sip_add_param(sip_header_t sip_header, char *param, int *error)
843 if (error != NULL)
844 *error = 0;
847 if (error != NULL)
848 *error = EINVAL;
856 if (error != NULL)
857 *error = EPERM;
863 if (error != NULL)
864 *error = EINVAL;
875 if (error != NULL)
876 *error = ENOMEM;
893 if (error != NULL)
894 *error = EINVAL;
917 sip_get_request_uri(sip_msg_t sip_msg, int *error)
923 if (error != NULL)
924 *error = 0;
927 if (error != NULL)
928 *error = EINVAL;
937 if (error != NULL)
938 *error = EINVAL;
946 if (error != NULL)
947 *error = EINVAL;
948 } else if (ret->sip_uri_errflags != 0 && error != NULL) {
949 *error = EINVAL;
960 sip_sent_by_to_str(int *error)
970 if (error != NULL)
971 *error = 0;
989 if (error != NULL)
990 *error = ENOMEM;