| 723 sprintf(buf, "event_set_info"); |
723 sprintf(buf, "event_set_info"); |
| 724 break; |
724 break; |
| 725 case event_draw_menu: |
725 case event_draw_menu: |
| 726 sprintf(buf, "event_draw_menu"); |
726 sprintf(buf, "event_draw_menu"); |
| 727 break; |
727 break; |
| 728 case event_im_displayed: |
728 case event_im_displayed_sent: |
| 729 sprintf(buf, "event_im_displayed"); |
729 sprintf(buf, "event_im_displayed_sent"); |
| |
730 break; |
| |
731 case event_im_displayed_rcvd: |
| |
732 sprintf(buf, "event_im_displayed_rcvd"); |
| 730 break; |
733 break; |
| 731 default: |
734 default: |
| 732 sprintf(buf, "event_unknown"); |
735 sprintf(buf, "event_unknown"); |
| 733 break; |
736 break; |
| 734 } |
737 } |
| 778 } |
781 } |
| 779 break; |
782 break; |
| 780 |
783 |
| 781 /* struct gaim_connection *, char *, char ** */ |
784 /* struct gaim_connection *, char *, char ** */ |
| 782 case event_im_send: |
785 case event_im_send: |
| 783 case event_im_displayed: |
786 case event_im_displayed_sent: |
| 784 case event_chat_send: |
787 case event_chat_send: |
| 785 { |
788 { |
| 786 void (*function)(struct gaim_connection *, char *, char **, |
789 void (*function)(struct gaim_connection *, char *, char **, |
| 787 void *) = g->function; |
790 void *) = g->function; |
| 788 (*function)(arg1, arg2, arg3, g->data); |
791 (*function)(arg1, arg2, arg3, g->data); |
| 827 /* struct gaim_connection *, char *, char * */ |
830 /* struct gaim_connection *, char *, char * */ |
| 828 case event_chat_buddy_join: |
831 case event_chat_buddy_join: |
| 829 case event_chat_buddy_leave: |
832 case event_chat_buddy_leave: |
| 830 case event_away: |
833 case event_away: |
| 831 case event_back: |
834 case event_back: |
| |
835 case event_im_displayed_rcvd: |
| 832 { |
836 { |
| 833 void (*function)(struct gaim_connection *, char *, char *, |
837 void (*function)(struct gaim_connection *, char *, char *, |
| 834 void *) = g->function; |
838 void *) = g->function; |
| 835 (*function)(arg1, arg2, arg3, g->data); |
839 (*function)(arg1, arg2, arg3, g->data); |
| 836 } |
840 } |
| 955 g_snprintf(buf, sizeof buf, "\"%s\"", (char *)arg1); |
959 g_snprintf(buf, sizeof buf, "\"%s\"", (char *)arg1); |
| 956 break; |
960 break; |
| 957 case event_draw_menu: |
961 case event_draw_menu: |
| 958 g_snprintf(buf, sizeof buf, "\"%s\"", (char *)arg2); |
962 g_snprintf(buf, sizeof buf, "\"%s\"", (char *)arg2); |
| 959 break; |
963 break; |
| 960 case event_im_displayed: |
964 case event_im_displayed_sent: |
| |
965 g_snprintf(buf, sizeof buf, "\"%s\" \"%s\" %s", |
| |
966 ((struct gaim_connection *)arg1)->username, (char *)arg2, |
| |
967 *(char **)arg3 ? *(char **)arg3 : "(null)"); |
| |
968 break; |
| |
969 case event_im_displayed_rcvd: |
| 961 g_snprintf(buf, sizeof buf, "\"%s\" \"%s\" %s", |
970 g_snprintf(buf, sizeof buf, "\"%s\" \"%s\" %s", |
| 962 ((struct gaim_connection *)arg1)->username, (char *)arg2, |
971 ((struct gaim_connection *)arg1)->username, (char *)arg2, |
| 963 (char *)arg3 ? (char *)arg3 : "(null)"); |
972 (char *)arg3 ? (char *)arg3 : "(null)"); |
| 964 break; |
973 break; |
| 965 default: |
974 default: |