1
2008-1-29 Casey Dahlin <cdahlin@redhat.com>
3
* nih/nih_dbus_tool.py (Method.asyncDispatchPrototype): Prototype for
4
new asynchronous dispatch function, explained below.
6
* nih/nih_dbus_tool.py (Method.asyncDispatchFunction): The
7
asynchronous dispatch function takes a proxy, the arguments to the
8
given method, a callback and an "errback" function pointer, and a void
9
pointer. It calls the DBus method, but does not wait for a reply.
10
Instead it sets up the callback to be called upon reply. If an error
11
occurs, the errback is called instead. Either function will recieve
12
the proxy and the value in the void pointer as arguments. The normal
13
callback also receives arguments for anything returned by the method.
15
* nih/nih_dbus_tool.py (Method.asyncNotifyPrototype): Prototype for new
16
asynchronous notification function. See below.
18
* nih/nih_dbus_tool.py (Method.asyncNotifyFunction): When the
19
asynchronous dispatch function sets up a method call, it specifies
20
the function generated by this function as the callback, and passes it
21
an NihAsyncNotifyData struct containing the user-provided callback and
22
errback. The asynchronous notify function then sets up the error to be
23
handled by the errback or marshalls the return values to the callback.
25
* nih/nih_dbus_tool.py (Generator.exportTypedefs): This function
26
returns a list of tuples of (type, name, args) format for typedefs to
27
be placed in the generated header file. Args is present for defining
28
function arguments for function pointer typedefs.
30
* nih/nih_dbus_tool.py (lineup_typedefs): Works like the other
31
lineup_*s. Outputs typedef text from (type, name, args) tuples (see
32
above) in a prettified, well-spaced format.
34
* nih/nih_dbus_tool.py (typedef_lineup_prefix): Used to make names
35
line up well in lineup_typedefs. If a string begins with (* it is
36
returned as is. If it begins with * it is returned with one leading
37
space. Otherwise it gets two leading spaces.
1
39
2008-10-24 Scott James Remnant <scott@netsplit.com>
3
41
* nih/list.h (NIH_LIST_FOREACH_SAFE): Mark the cursor to be