Mercurial > pidgin
comparison src/signals.c @ 6822:7dba3e17cb21
[gaim-migrate @ 7366]
Added plugin IPC. Its use is shown in plugins/ipc-test-server.c and
plugins/ipc-test-client.c.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Sat, 13 Sep 2003 09:31:03 +0000 |
parents | 800ef4a51096 |
children | 9e93a4bf1934 |
comparison
equal
deleted
inserted
replaced
6821:636b5215552e | 6822:7dba3e17cb21 |
---|---|
534 { | 534 { |
535 ((void (*)(void *))cb)(data); | 535 ((void (*)(void *))cb)(data); |
536 } | 536 } |
537 | 537 |
538 void | 538 void |
539 gaim_marshal_VOID__INT(GaimCallback cb, va_list args, void *data, | |
540 void **return_val) | |
541 { | |
542 gint arg1 = va_arg(args, gint); | |
543 | |
544 ((void (*)(gint, void *))cb)(arg1, data); | |
545 } | |
546 | |
547 void | |
548 gaim_marshal_VOID__INT_INT(GaimCallback cb, va_list args, void *data, | |
549 void **return_val) | |
550 { | |
551 gint arg1 = va_arg(args, gint); | |
552 gint arg2 = va_arg(args, gint); | |
553 | |
554 ((void (*)(gint, gint, void *))cb)(arg1, arg2, data); | |
555 } | |
556 | |
557 void | |
539 gaim_marshal_VOID__POINTER(GaimCallback cb, va_list args, void *data, | 558 gaim_marshal_VOID__POINTER(GaimCallback cb, va_list args, void *data, |
540 void **return_val) | 559 void **return_val) |
541 { | 560 { |
542 void *arg1 = va_arg(args, void *); | 561 void *arg1 = va_arg(args, void *); |
543 | 562 |
619 ((void (*)(void *, void *, void *, guint, guint, void *))cb)( | 638 ((void (*)(void *, void *, void *, guint, guint, void *))cb)( |
620 arg1, arg2, arg3, arg4, arg5, data); | 639 arg1, arg2, arg3, arg4, arg5, data); |
621 } | 640 } |
622 | 641 |
623 void | 642 void |
643 gaim_marshal_INT__INT(GaimCallback cb, va_list args, void *data, | |
644 void **return_val) | |
645 { | |
646 gint ret_val; | |
647 gint arg1 = va_arg(args, gint); | |
648 | |
649 ret_val = ((gint (*)(gint, void *))cb)(arg1, data); | |
650 | |
651 if (return_val != NULL) | |
652 *return_val = GINT_TO_POINTER(ret_val); | |
653 } | |
654 | |
655 void | |
656 gaim_marshal_INT__INT_INT(GaimCallback cb, va_list args, void *data, | |
657 void **return_val) | |
658 { | |
659 gint ret_val; | |
660 gint arg1 = va_arg(args, gint); | |
661 gint arg2 = va_arg(args, gint); | |
662 | |
663 ret_val = ((gint (*)(gint, gint, void *))cb)(arg1, arg2, data); | |
664 | |
665 if (return_val != NULL) | |
666 *return_val = GINT_TO_POINTER(ret_val); | |
667 } | |
668 | |
669 void | |
624 gaim_marshal_BOOLEAN__POINTER(GaimCallback cb, va_list args, void *data, | 670 gaim_marshal_BOOLEAN__POINTER(GaimCallback cb, va_list args, void *data, |
625 void **return_val) | 671 void **return_val) |
626 { | 672 { |
627 gboolean ret_val; | 673 gboolean ret_val; |
628 void *arg1 = va_arg(args, void *); | 674 void *arg1 = va_arg(args, void *); |