summaryrefslogtreecommitdiff
path: root/gio/gdbusmethodinvocation.c
Commit message (Collapse)AuthorAgeFilesLines
* Add missing allow-none annotations for function parameters.Robert Ancell2012-03-311-2/+2
| | | | | Found using: find . -name '*.c' | xargs grep 'or %NULL' | grep ' \* @' | grep -v '@error' | grep -v allow-none
* void functions should not return. Fixes bug #656675.Brian Cameron2011-08-171-2/+2
|
* gdbus-codegen: Add support for new org.gtk.GDBus.C.UnixFD annotationDavid Zeuthen2011-07-211-17/+59
| | | | | | | Also add convenience _with_unix_fd_list variants to GDBusConnection, GDBusProxy and GDBusMethodInvocation types to easily support this. Signed-off-by: David Zeuthen <davidz@redhat.com>
* Add g_dbus_method_invocation_take_error() convenience methodDavid Zeuthen2011-05-111-0/+22
| | | | | | Similar in spirit to g_simple_async_result_take_error(). Signed-off-by: David Zeuthen <davidz@redhat.com>
* GDBusMethodInvocation: fix introspection annotationsGiovanni Campagna2011-05-091-7/+7
| | | | | | | In particular (transfer full), to avoid a refcounting bug and a segmentation fault. https://bugzilla.gnome.org/show_bug.cgi?id=646635
* Drop translated g_warning/g_errorColin Walters2011-05-021-3/+3
| | | | http://mail.gnome.org/archives/desktop-devel-list/2011-March/msg00069.html
* GDBusMethodInvocation: Improve get_parameters() documentation.Murray Cumming2011-04-031-2/+3
| | | | | Note that the returned GVariant is always a tuple. See bug #646420.
* Add a lot of missing annotationsJohan Dahlin2010-09-241-3/+3
|
* GDBusMethodInvocation: nuke constructorDavid Zeuthen2010-08-221-11/+11
| | | | | | | | ... that is, make it private. This makes sense because users are never expected to create such objects themselves - only the GDBus core will need this. Signed-off-by: David Zeuthen <davidz@redhat.com>
* GDBus: Add `return' debug optionDavid Zeuthen2010-08-041-0/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This prints all GDBusMethodInvocation API usage and is normally used with the `incoming' option. Example: # G_DBUS_DEBUG=incoming,return ./polkitd --replace Entering main event loop Connected to the system bus Registering null backend at priority -10 [...] Acquired the name org.freedesktop.PolicyKit1 [...] ======================================================================== GDBus-debug:Incoming: <<<< METHOD INVOCATION org.freedesktop.PolicyKit1.Authority.RegisterAuthenticationAgent() on object /org/freedesktop/PolicyKit1/Authority invoked by name :1.26 serial 299 ======================================================================== GDBus-debug:Return: >>>> METHOD ERROR org.freedesktop.PolicyKit1.Error.Failed message `Cannot determine session the caller is in' in response to org.freedesktop.PolicyKit1.Authority.RegisterAuthenticationAgent() on object /org/freedesktop/PolicyKit1/Authority to name :1.26 reply-serial 299 [...] ======================================================================== GDBus-debug:Incoming: <<<< METHOD INVOCATION org.freedesktop.PolicyKit1.Authority.RegisterAuthenticationAgent() on object /org/freedesktop/PolicyKit1/Authority invoked by name :1.2402 serial 25 ======================================================================== GDBus-debug:Return: >>>> METHOD RETURN in response to org.freedesktop.PolicyKit1.Authority.RegisterAuthenticationAgent() on object /org/freedesktop/PolicyKit1/Authority to name :1.2402 reply-serial 25 Signed-off-by: David Zeuthen <davidz@redhat.com>
* GDBus: Add GDBusSendMessageFlagsDavid Zeuthen2010-07-191-2/+2
| | | | | | | | | | | | This is currently unused but might be useful in the future. For example, it might be nice with a way to bypass the current queue of outgoing messages - having a flag enumeration allows us to add a G_DBUS_SEND_MESSAGE_FLAGS_BYPASS_QUEUE etc. etc. This commit breaks ABI and API. Users of the (rarely used) API to send messages will have to port to this new API. Signed-off-by: David Zeuthen <davidz@redhat.com>
* gio/: fully remove gioalias hacksRyan Lortie2010-07-071-4/+0
|
* GDBus: Hide instance structures for classes we don't want to be subclassedDavid Zeuthen2010-07-071-38/+43
| | | | | | | This also allows us to nuke the priv-> pointers and save a couple of indirections. Signed-off-by: David Zeuthen <davidz@redhat.com>
* GDBus: Hide class structures for classes we don't want to be subclassedDavid Zeuthen2010-07-071-0/+13
| | | | | | | | | E.g. move these C structures out of public header files and into their respective C files. Also nuke padding since this is no longer needed. This leaves only GDBusProxy as an extendable type. Signed-off-by: David Zeuthen <davidz@redhat.com>
* g_dbus_method_invocation_return_value consumes the floating variantChristian Persch2010-06-081-0/+1
| | | | Bug #620953.
* GDBusConnection.call(): add 'reply_type' argumentRyan Lortie2010-05-241-16/+12
| | | | | | | | | | | | | | | | | | | | | | | This allows the caller to specify the reply type that they are expecting for this call. If the reply comes back with the wrong type, GDBus will generate an appropriate error internally. - add a GVariantType * argument to g_dbus_connection_call() and _call_sync(). - move the internal API for computing message types from introspection data to be based on GVariantType instead of strings. Update users of this code. - have GDBusProxy pass this calculated GVariantType into g_dbus_connection_call(). Remove the checks done in GDBusProxy. - Update other users of the code (test cases, gdbus-tool, GSettings tool, etc). In some cases, remove redundant checks; in some other cases, we are fixing bugs because no checking was done where it should have been. Closes bug #619391.
* Remove properties from GDBusMethodInvocation classMatthias Clasen2010-05-111-312/+18
|
* Cosmetic fixesMatthias Clasen2010-05-091-35/+34
| | | | Use P_() for properties, fix up indentation, etc.
* Update copyright years to include 2010Matthias Clasen2010-05-091-1/+1
|
* Some documentation tweaksMatthias Clasen2010-05-091-0/+4
| | | | | Add links to the D-Bus docs in some places, and various other additions.
* GDBus: Add new symbols to gio.symbolsDavid Zeuthen2010-05-061-0/+4
|
* GDBus: Fix up i18nDavid Zeuthen2010-05-061-1/+2
|
* Add "Since: 2.26" to all new GDBus APIDavid Zeuthen2010-05-061-0/+50
|
* Set up gtk-doc for GDBusDavid Zeuthen2010-05-061-1/+1
| | | | | | | | Also move send_credentials() and receive_credentials() to GUnixConnection. This code might change, discussion is still ongoing in https://bugzilla.gnome.org/show_bug.cgi?id=617483.
* Initial GDBus code-drop from GDBus-standalone repoDavid Zeuthen2010-05-061-0/+795
Things compile and the test-suite passes. Still need to hook up gio.symbols and docs. There are still a bunch of TODOs left in the sources that needs to be addressed. Signed-off-by: David Zeuthen <davidz@redhat.com>