summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2011-04-08Update man pageHEADmasterDavid Zeuthen5-355/+347
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-04-08Make the generated GDBusProxyTypeFunc O(1)David Zeuthen1-7/+13
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-04-08Lookups are no longer O(n), they're O(1) as of 2.29.xDavid Zeuthen1-2/+0
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-04-08Remove TODO items about g_signal_lookupDavid Zeuthen1-2/+0
It's O(1) already so no need to optimize it. Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-04-08Nuke type-safe callbacks for nowDavid Zeuthen2-45/+13
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-04-07Use path_namespace, not path_prefixDavid Zeuthen1-3/+3
It ended up being path_namespace instead, see https://bugs.freedesktop.org/show_bug.cgi?id=34870 for the reasons why. Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-04-04Expand to Method(), "Property" and "Signal" just like gtk-doc doesDavid Zeuthen1-2/+2
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-04-04Expand links in the proper orderDavid Zeuthen1-2/+8
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-04-04Unbreak indexDavid Zeuthen1-3/+3
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-04-04Don't include interface name in method, signal and property linksDavid Zeuthen1-3/+3
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-04-04Expand inline references to D-Bus interfaces, methods, signals and propertiesDavid Zeuthen3-16/+52
This is just like gtk-doc org.project.Bar.HelloWorld() Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-04-04Fix broken linkDavid Zeuthen1-2/+2
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-04-04Generate one XML file per refentryDavid Zeuthen4-12/+19
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-04-04Reword some of the headings and IndexTermDavid Zeuthen1-9/+9
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-04-03Generalize strip prefix and use it in the doc indexDavid Zeuthen7-33/+32
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-04-03Generate indexterm for interfaces, methods, signals and propertiesDavid Zeuthen2-0/+7
This way these items appears in <index> as expected. Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-03-31Nuke debug and rename some parametersDavid Zeuthen1-70/+18
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-03-31Generate <chapter> instead of <reference>David Zeuthen2-13/+25
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-03-31Add a --generate-docbook optionDavid Zeuthen9-173/+687
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-03-28Optimize linear search awayDavid Zeuthen1-2/+2
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-03-28Print a warning if Property.Set() failsDavid Zeuthen1-3/+21
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-03-21Also emit ::authorize-method signals on the enclosing objectDavid Zeuthen10-28/+234
Also factor some private functions into a private header file. Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-03-18Add a way to authorize and run method implementations in a threadDavid Zeuthen10-140/+848
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-03-18Add type-safe callback macrosDavid Zeuthen2-12/+46
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-03-17Actually implement interface functions in GDBusObjectManagerServerDavid Zeuthen2-12/+23
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-03-17Make GDBusObjectManager an interface and add Client, Server implementationsDavid Zeuthen17-1618/+1763
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-03-16Avoid double typedefsDavid Zeuthen1-3/+0
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-03-16Add forgotten filesDavid Zeuthen2-0/+292
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-03-16Fix up docsDavid Zeuthen6-18/+21
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-03-16Nuke unused codeDavid Zeuthen5-444/+0
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-03-16Rework object model significantlyDavid Zeuthen23-1236/+1215
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-03-08Switch to using the org.freedesktop.DBus.ObjectManager interfaceDavid Zeuthen3-86/+63
Screenshot: http://people.freedesktop.org/~david/ObjectManager-in-dfeet.png Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-03-08Use path_prefix match rule for efficiencyDavid Zeuthen1-25/+96
... but still handle the case where this match key is not available. For the record, this match key will will be available in future bus daemons. See https://bugs.freedesktop.org/show_bug.cgi?id=34869 https://bugs.freedesktop.org/show_bug.cgi?id=34870 for more details. Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-03-04Use GDBusProxyManagerFlags for proxy manager, not GDBusProxyFlagsDavid Zeuthen1-52/+52
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-02-28Switch from arrays to dictsDavid Zeuthen3-23/+22
As proposed by Thiago on the D-Bus list. See http://lists.freedesktop.org/archives/dbus/2011-February/014148.html http://lists.freedesktop.org/archives/dbus/2011-February/014149.html Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-02-24Fix buildDavid Zeuthen1-6/+0
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-02-15Fix off-by-one bug affecting interfaces with only a single propertyDavid Zeuthen1-4/+4
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-02-15Fix bug in array string comparison when passing two NULL valuesDavid Zeuthen1-1/+4
We want _g_strv_equal0 (NULL, NULL) to return TRUE. Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-02-15Make comparisons of array of strings actually workDavid Zeuthen1-2/+2
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-02-15Set the right free_func for bytestringsDavid Zeuthen1-0/+1
We were default to g_variant_unref (instead of g_free) which was causing memory corruption... Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-02-15Don't call g_variant_unref() with a NULL GVariantDavid Zeuthen1-1/+5
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-02-14Handle introspection XML with unnamed argumentsDavid Zeuthen2-7/+20
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-02-14Fix corner-cases bugs for namespace handlingDavid Zeuthen1-15/+19
In particular make '--namespace G' work - e.g. generate type GBar and functions g_bar_* instead of gbar_*. Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-02-14Make annotations passed on command-line take precedenceDavid Zeuthen1-1/+1
Otherwise this command-line won't work python ./codegen.py --namespace Zee org.project.xml --strip-prefix \ org.project. --generate-c-code generated --annotate com.acme.Rocket \ org.gtk.GDBus.Name Raket since org.project.xml already has a org.gtk.GDBus.Name annotation for the com.acme.Rocket interface. Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-02-14Clean up optionsDavid Zeuthen3-292/+20
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-02-14Nuke unused options passed to gdbus-codegenDavid Zeuthen1-2/+0
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-02-14Add tests for org.gtk.GDBus.Name annotationDavid Zeuthen1-0/+14
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-02-14Support org.gtk.GDBus.Name annotationDavid Zeuthen3-5/+23
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-02-14Rewrite D-Bus XML parser in python instead of using the one in libgioDavid Zeuthen4-84/+301
Ideally we'd use the one in libgio but unfortunately gobject-introspection doesn't expose struct field access and we also want to avoid potential boot-strapping problems if we want to use the codegen in libgio itself. (Using the codegen in libgio itself, btw, is not far fetched; at least we could generate C code for standard well-known interfaces including (but not limited to) org.freedesktop.DBus itself). Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-02-12Move python around someDavid Zeuthen5-307/+299
Signed-off-by: David Zeuthen <davidz@redhat.com>