Lines Matching defs:error

50     int *error)
55 if (error != NULL)
56 *error = 0;
58 if (error != NULL)
59 *error = EINVAL;
67 if (sip_hdr == NULL && error != NULL)
68 *error = EINVAL;
76 sip_reqline_to_str(sip_msg_t sip_msg, int *error)
80 if (error != NULL)
81 *error = 0;
82 if (sip_msg == NULL || !sip_msg_is_request(sip_msg, error)) {
83 if (error != NULL)
84 *error = EINVAL;
87 reqstr = _sip_startline_to_str((_sip_msg_t *)sip_msg, error);
95 sip_respline_to_str(sip_msg_t sip_msg, int *error)
99 if (error != NULL)
100 *error = 0;
101 if (sip_msg == NULL || sip_msg_is_request(sip_msg, error)) {
102 if (error != NULL)
103 *error = EINVAL;
106 respstr = _sip_startline_to_str((_sip_msg_t *)sip_msg, error);
114 sip_get_header_value(const struct sip_header *sip_header, int *error)
121 if (error != NULL)
122 *error = 0;
124 if (error != NULL)
125 *error = EINVAL;
138 if (error != NULL)
139 *error = EINVAL;
148 if (error != NULL)
149 *error = ret;
157 error != NULL) {
158 *error = EPROTO;
167 sip_get_next_value(sip_header_value_t old_value, int *error)
171 if (error != NULL)
172 *error = 0;
174 if (error != NULL)
175 *error = EINVAL;
185 error != NULL) {
186 *error = EPROTO;
365 int *error)
370 if (error != NULL)
371 *error = 0;
373 if (error != NULL)
374 *error = EINVAL;
379 if (error != NULL)
380 *error = EINVAL;
384 if (error != NULL)
385 *error = EINVAL;
399 sip_get_params(sip_header_value_t header_value, int *error)
403 if (error != NULL)
404 *error = 0;
406 if (error != NULL)
407 *error = EINVAL;
412 if (error != NULL)
413 *error = EINVAL;
423 sip_msg_is_request(sip_msg_t sip_msg, int *error)
429 if (error != NULL)
430 *error = 0;
432 if (error != NULL)
433 *error = EINVAL;
440 if (error != NULL)
441 *error = EINVAL;
454 sip_msg_is_response(sip_msg_t sip_msg, int *error)
460 if (error != NULL)
461 *error = 0;
463 if (error != NULL)
464 *error = EINVAL;
471 if (error != NULL)
472 *error = EINVAL;
485 sip_get_request_method(sip_msg_t sip_msg, int *error)
491 if (error != NULL)
492 *error = 0;
494 if (error != NULL)
495 *error = EINVAL;
503 if (error != NULL)
504 *error = EINVAL;
509 else if (error != NULL)
510 *error = EINVAL;
519 sip_get_request_uri_str(sip_msg_t sip_msg, int *error)
526 if (error != NULL)
527 *error = 0;
529 if (error != NULL)
530 *error = EINVAL;
537 if (error != NULL)
538 *error = EINVAL;
547 * If the error is required, check the validity of the URI via
550 if (error != NULL) {
551 parsed_uri = sip_parse_uri(ret, error);
562 sip_get_response_code(sip_msg_t sip_msg, int *error)
568 if (error != NULL)
569 *error = 0;
571 if (error != NULL)
572 *error = EINVAL;
579 if (error != NULL)
580 *error = EINVAL;
586 else if (error != NULL)
587 *error = EINVAL;
596 sip_get_response_phrase(sip_msg_t sip_msg, int *error)
602 if (error != NULL)
603 *error = 0;
605 if (error != NULL)
606 *error = EINVAL;
613 if (error != NULL)
614 *error = EINVAL;
624 } else if (error != NULL) {
625 *error = EINVAL;
634 sip_get_sip_version(sip_msg_t sip_msg, int *error)
640 if (error != NULL)
641 *error = 0;
643 if (error != NULL)
644 *error = EINVAL;
651 if (error != NULL)
652 *error = EINVAL;
665 sip_get_msg_len(sip_msg_t sip_msg, int *error)
669 if (error != NULL)
670 *error = 0;
672 if (error != NULL)
673 *error = EINVAL;
685 sip_get_content(sip_msg_t sip_msg, int *error)
693 if (error != NULL)
694 *error = 0;
697 if (error != NULL)
698 *error = EINVAL;
705 if (error != NULL)
706 *error = EINVAL;
712 if (error != NULL)
713 *error = ENOMEM;
831 sip_add_param(sip_header_t sip_header, char *param, int *error)
840 if (error != NULL)
841 *error = 0;
844 if (error != NULL)
845 *error = EINVAL;
853 if (error != NULL)
854 *error = EPERM;
860 if (error != NULL)
861 *error = EINVAL;
872 if (error != NULL)
873 *error = ENOMEM;
890 if (error != NULL)
891 *error = EINVAL;
914 sip_get_request_uri(sip_msg_t sip_msg, int *error)
920 if (error != NULL)
921 *error = 0;
924 if (error != NULL)
925 *error = EINVAL;
934 if (error != NULL)
935 *error = EINVAL;
943 if (error != NULL)
944 *error = EINVAL;
945 } else if (ret->sip_uri_errflags != 0 && error != NULL) {
946 *error = EINVAL;
957 sip_sent_by_to_str(int *error)
967 if (error != NULL)
968 *error = 0;
986 if (error != NULL)
987 *error = ENOMEM;