[compiz] dbus introspection
mike at blueroot.co.uk
Mon Feb 26 16:29:23 PST 2007
Travis Watkins wrote:
> The real solution is to change the API to make it
> introspection-friendly. Rather than make these changes and submit them
> I thought it was be a good idea to ask what people thought a good
> solution would be. The API would ideally have every method take/return
> the same number and type of arguments no matter what.
> Any thoughts?
I thought that we were ok for most options because
each method is attached to a different object.
You should be able to read each option to tell what
datatype it is when generating the XML, or am I
If we change some methods so that they return either
arrays or dictionaries then it should make it easier to
handle. getMetadata should probably return a dictionary
with the restrictions being an array.
The real problem is actions (ie activate/terminate)
because they can take a variable number of arguments
so would need to register somehow.
More information about the compiz