mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-04 18:26:19 +01:00
9695c23d4c
Also make the gdbus-example-server include some example annotations. The output looks like this: $ gdbus introspect --session --dest org.gtk.GDBus.TestServer --object-path /org/gtk/GDBus/TestObject node /org/gtk/GDBus/TestObject { interface org.freedesktop.DBus.Properties { methods: Get(in s interface_name, in s property_name, out v value); GetAll(in s interface_name, out a{sv} properties); Set(in s interface_name, in s property_name, in v value); signals: PropertiesChanged(s interface_name, a{sv} changed_properties); }; interface org.freedesktop.DBus.Introspectable { methods: Introspect(out s xml_data); }; interface org.freedesktop.DBus.Peer { methods: Ping(); GetMachineId(out s machine_uuid); }; @org.gtk.GDBus.Annotation("OnInterface") @org.gtk.GDBus.Annotation("AlsoOnInterface") interface org.gtk.GDBus.TestInterface { methods: @org.gtk.GDBus.Annotation("OnMethod") HelloWorld(in s greeting, out s response); EmitSignal(@org.gtk.GDBus.Annotation.("OnArg") in d speed_in_mph); GimmeStdout(); signals: @org.gtk.GDBus.Annotation("Onsignal") VelocityChanged(d speed_in_mph, @org.gtk.GDBus.Annotation.("OnArg_NonFirst") s speed_as_string); properties: @org.gtk.GDBus.Annotation("OnProperty") @org.gtk.GDBus.Annotation("OnAnnotation_YesThisIsCrazy") readonly s FluxCapicitorName = 'DeLorean'; readwrite s Title = 'Back To C!'; readonly s ReadingAlwaysThrowsError; readwrite s WritingAlwaysThrowsError = "There's no home like home"; writeonly s OnlyWritable; readonly s Foo = 'Tick'; readonly s Bar = 'Tock'; }; }; |
||
---|---|---|
.. | ||
schema-tests | ||
.gitignore | ||
buffered-input-stream.c | ||
contexts.c | ||
converter-stream.c | ||
data-input-stream.c | ||
data-output-stream.c | ||
de.po | ||
desktop-app-info.c | ||
echo-server.c | ||
filter-cat.c | ||
filter-streams.c | ||
g-file-info.c | ||
g-file.c | ||
g-icon.c | ||
gdbus-addresses.c | ||
gdbus-connection.c | ||
gdbus-error.c | ||
gdbus-example-own-name.c | ||
gdbus-example-peer.c | ||
gdbus-example-proxy-subclass.c | ||
gdbus-example-server.c | ||
gdbus-example-subtree.c | ||
gdbus-example-unix-fd-client.c | ||
gdbus-example-watch-name.c | ||
gdbus-example-watch-proxy.c | ||
gdbus-exit-on-close.c | ||
gdbus-export.c | ||
gdbus-introspection.c | ||
gdbus-names.c | ||
gdbus-peer.c | ||
gdbus-proxy.c | ||
gdbus-serialization.c | ||
gdbus-sessionbus.c | ||
gdbus-sessionbus.h | ||
gdbus-tests.c | ||
gdbus-tests.h | ||
gdbus-testserver.py | ||
gdbus-threading.c | ||
gschema-compile.c | ||
gsettings.c | ||
httpd.c | ||
live-g-file.c | ||
live-g-file.txt | ||
Makefile.am | ||
memory-input-stream.c | ||
memory-output-stream.c | ||
org.gtk.test.gschema | ||
org.gtk.test.gschema.xml | ||
readwrite.c | ||
resolver.c | ||
send-data.c | ||
simple-async-result.c | ||
sleepy-stream.c | ||
socket-client.c | ||
socket-common.c | ||
socket-server.c | ||
srvtarget.c | ||
unix-fd.c | ||
unix-streams.c | ||
win32-streams.c |