~cjdahlin/libnih/async

Viewing all changes in revision 603.

  • Committer: Casey Dahlin
  • Date: 2009-01-28 03:28:11 UTC
  • Revision ID: cdahlin@redhat.com-20090128032811-9igj4mtnmiklxbhj
* nih/dbus.h: Add NihAsyncNotifyData struct for passing data to the
DBusPendingCall callback.
* nih/nih_dbus_tool.py (asyncDispatchPrototype): Remove useless in_args/out_args
calculations and change arguments to use an NihAsyncNotifyData rather than just
a function pointer.
(asyncNotifyPrototype): Add userdata to callback prototype
(asyncNotifyFunction): Remove useless in_args calculations and change arguments
to use an NihAsyncNotifyData rather than just a function pointer. Also fix a
double deref, and make reply arguments allocated as children of the proxy.
(asyncDispatchFunction): Use NihAsyncNotifyData not a function pointer.
(staticPrototypes): Move async notify function here
(exportPrototypes): Remove async notify function from here
* nih/tests/test_com.netsplit.Nih.Test_proxy.c: Add a testcase for async calls

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: