Mercurial > pidgin
comparison src/request.c @ 7035:feb3d21a7794
[gaim-migrate @ 7598]
Standardized the UI op accessor functions in every file. They're now
properly namespaced.
committer: Tailor Script <tailor@pidgin.im>
| author | Christian Hammond <chipx86@chipx86.com> |
|---|---|
| date | Mon, 29 Sep 2003 23:39:02 +0000 |
| parents | de67cb0dd09d |
| children | 7d1909655fd0 |
comparison
equal
deleted
inserted
replaced
| 7034:f7ff0dfa6b9f | 7035:feb3d21a7794 |
|---|---|
| 3 * @ingroup core | 3 * @ingroup core |
| 4 * | 4 * |
| 5 * gaim | 5 * gaim |
| 6 * | 6 * |
| 7 * Copyright (C) 2003 Christian Hammond <chipx86@gnupdate.org> | 7 * Copyright (C) 2003 Christian Hammond <chipx86@gnupdate.org> |
| 8 * | 8 * |
| 9 * This program is free software; you can redistribute it and/or modify | 9 * This program is free software; you can redistribute it and/or modify |
| 10 * it under the terms of the GNU General Public License as published by | 10 * it under the terms of the GNU General Public License as published by |
| 11 * the Free Software Foundation; either version 2 of the License, or | 11 * the Free Software Foundation; either version 2 of the License, or |
| 12 * (at your option) any later version. | 12 * (at your option) any later version. |
| 13 * | 13 * |
| 590 | 590 |
| 591 g_return_val_if_fail(primary != NULL, NULL); | 591 g_return_val_if_fail(primary != NULL, NULL); |
| 592 g_return_val_if_fail(ok_text != NULL, NULL); | 592 g_return_val_if_fail(ok_text != NULL, NULL); |
| 593 g_return_val_if_fail(ok_cb != NULL, NULL); | 593 g_return_val_if_fail(ok_cb != NULL, NULL); |
| 594 | 594 |
| 595 ops = gaim_get_request_ui_ops(); | 595 ops = gaim_request_get_ui_ops(); |
| 596 | 596 |
| 597 if (ops != NULL && ops->request_input != NULL) { | 597 if (ops != NULL && ops->request_input != NULL) { |
| 598 GaimRequestInfo *info; | 598 GaimRequestInfo *info; |
| 599 | 599 |
| 600 info = g_new0(GaimRequestInfo, 1); | 600 info = g_new0(GaimRequestInfo, 1); |
| 654 g_return_val_if_fail(primary != NULL, NULL); | 654 g_return_val_if_fail(primary != NULL, NULL); |
| 655 g_return_val_if_fail(ok_text != NULL, NULL); | 655 g_return_val_if_fail(ok_text != NULL, NULL); |
| 656 g_return_val_if_fail(ok_cb != NULL, NULL); | 656 g_return_val_if_fail(ok_cb != NULL, NULL); |
| 657 g_return_val_if_fail(choice_count > 0, NULL); | 657 g_return_val_if_fail(choice_count > 0, NULL); |
| 658 | 658 |
| 659 ops = gaim_get_request_ui_ops(); | 659 ops = gaim_request_get_ui_ops(); |
| 660 | 660 |
| 661 if (ops != NULL && ops->request_choice != NULL) { | 661 if (ops != NULL && ops->request_choice != NULL) { |
| 662 GaimRequestInfo *info; | 662 GaimRequestInfo *info; |
| 663 | 663 |
| 664 info = g_new0(GaimRequestInfo, 1); | 664 info = g_new0(GaimRequestInfo, 1); |
| 708 GaimRequestUiOps *ops; | 708 GaimRequestUiOps *ops; |
| 709 | 709 |
| 710 g_return_val_if_fail(primary != NULL, NULL); | 710 g_return_val_if_fail(primary != NULL, NULL); |
| 711 g_return_val_if_fail(action_count > 0, NULL); | 711 g_return_val_if_fail(action_count > 0, NULL); |
| 712 | 712 |
| 713 ops = gaim_get_request_ui_ops(); | 713 ops = gaim_request_get_ui_ops(); |
| 714 | 714 |
| 715 if (ops != NULL && ops->request_action != NULL) { | 715 if (ops != NULL && ops->request_action != NULL) { |
| 716 GaimRequestInfo *info; | 716 GaimRequestInfo *info; |
| 717 | 717 |
| 718 info = g_new0(GaimRequestInfo, 1); | 718 info = g_new0(GaimRequestInfo, 1); |
| 741 | 741 |
| 742 g_return_val_if_fail(fields != NULL, NULL); | 742 g_return_val_if_fail(fields != NULL, NULL); |
| 743 g_return_val_if_fail(ok_text != NULL, NULL); | 743 g_return_val_if_fail(ok_text != NULL, NULL); |
| 744 g_return_val_if_fail(ok_cb != NULL, NULL); | 744 g_return_val_if_fail(ok_cb != NULL, NULL); |
| 745 | 745 |
| 746 ops = gaim_get_request_ui_ops(); | 746 ops = gaim_request_get_ui_ops(); |
| 747 | 747 |
| 748 if (ops != NULL && ops->request_fields != NULL) { | 748 if (ops != NULL && ops->request_fields != NULL) { |
| 749 GaimRequestInfo *info; | 749 GaimRequestInfo *info; |
| 750 | 750 |
| 751 info = g_new0(GaimRequestInfo, 1); | 751 info = g_new0(GaimRequestInfo, 1); |
| 770 GList *l; | 770 GList *l; |
| 771 GaimRequestUiOps *ops; | 771 GaimRequestUiOps *ops; |
| 772 | 772 |
| 773 g_return_if_fail(ui_handle != NULL); | 773 g_return_if_fail(ui_handle != NULL); |
| 774 | 774 |
| 775 ops = gaim_get_request_ui_ops(); | 775 ops = gaim_request_get_ui_ops(); |
| 776 | 776 |
| 777 for (l = handles; l != NULL; l = l->next) { | 777 for (l = handles; l != NULL; l = l->next) { |
| 778 GaimRequestInfo *info = l->data; | 778 GaimRequestInfo *info = l->data; |
| 779 | 779 |
| 780 if (info->ui_handle == ui_handle) { | 780 if (info->ui_handle == ui_handle) { |
| 796 GList *l, *l_next; | 796 GList *l, *l_next; |
| 797 GaimRequestUiOps *ops; | 797 GaimRequestUiOps *ops; |
| 798 | 798 |
| 799 g_return_if_fail(handle != NULL); | 799 g_return_if_fail(handle != NULL); |
| 800 | 800 |
| 801 ops = gaim_get_request_ui_ops(); | 801 ops = gaim_request_get_ui_ops(); |
| 802 | 802 |
| 803 for (l = handles; l != NULL; l = l_next) { | 803 for (l = handles; l != NULL; l = l_next) { |
| 804 GaimRequestInfo *info = l->data; | 804 GaimRequestInfo *info = l->data; |
| 805 | 805 |
| 806 l_next = l->next; | 806 l_next = l->next; |
| 815 } | 815 } |
| 816 } | 816 } |
| 817 } | 817 } |
| 818 | 818 |
| 819 void | 819 void |
| 820 gaim_set_request_ui_ops(GaimRequestUiOps *ops) | 820 gaim_request_set_ui_ops(GaimRequestUiOps *ops) |
| 821 { | 821 { |
| 822 request_ui_ops = ops; | 822 request_ui_ops = ops; |
| 823 } | 823 } |
| 824 | 824 |
| 825 GaimRequestUiOps * | 825 GaimRequestUiOps * |
| 826 gaim_get_request_ui_ops(void) | 826 gaim_request_get_ui_ops(void) |
| 827 { | 827 { |
| 828 return request_ui_ops; | 828 return request_ui_ops; |
| 829 } | 829 } |
