summaryrefslogtreecommitdiff
path: root/gio/gdbusnameowning.c
Commit message (Collapse)AuthorAgeFilesLines
* introspection: use (nullable) or (optional) instead of (allow-none)Christian Hergert2016-11-221-12/+12
| | | | | | | | If we have an input parameter (or return value) we need to use (nullable). However, if it is an (inout) or (out) parameter, (optional) is sufficient. It looks like (nullable) could be used for everything according to the Annotation documentation, but (optional) is more specific.
* Convert remaining uses of 'Rename to:'Ryan Lortie2015-03-121-6/+2
| | | | | | This was replaced by (rename-to) in 2013 (see bug 676133). They're also causing gtk-doc trouble, so let's get rid of them.
* gio: Add names to idles and timeoutsBastien Nocera2014-03-271-0/+1
| | | | | | | This isn't too useful for some of the "return result in idle" functions, but it's better than nothing. https://bugzilla.gnome.org/show_bug.cgi?id=726872
* Convert remaining examples to linksMatthias Clasen2014-02-081-1/+2
|
* Eradicate links and xrefsMatthias Clasen2014-02-081-4/+4
| | | | These are all replaced by markdown ref links.
* gdbusnameowning: Convert docs to markdownMatthias Clasen2014-02-011-64/+63
|
* Updated FSF's addressDaniel Mustieles2014-01-311-3/+1
|
* gdbusnameowning: Don't spew an error if we're releasing a name due to closingColin Walters2013-07-191-1/+3
| | | | | | | | | | | | | | | | | The default GNOME 3.10 login process right now has gdm spawn a session for the login screen, retaining the X server, but closing the session bus. Right now in this scenario many GNOME components such as gnome-settings-daemon attempt to "clean up" on shutdown by releasing their owned names. But they're shutting down because the session bus went away, so releasing the name is pointless, and presently spews an error into the journal. This patch avoids that error spew, which helps system administrators find *real* problems. https://bugzilla.gnome.org/show_bug.cgi?id=704567
* Add missing allow-none annotations for function parameters.Robert Ancell2012-03-311-7/+7
| | | | | Found using: find . -name '*.c' | xargs grep 'or %NULL' | grep ' \* @' | grep -v '@error' | grep -v allow-none
* g_bus_own_name: fix race when unowning a name immediately after owning itDavid Zeuthen2011-10-271-24/+62
| | | | | | | | ... and also add a test to verify that the fix works. https://bugzilla.gnome.org/show_bug.cgi?id=662808 Signed-off-by: David Zeuthen <davidz@redhat.com>
* gio: Use G_VALUE_INITJavier Jardón2011-10-181-3/+3
|
* Add g_main_context_ref_thread_default()Dan Winship2011-10-071-9/+8
| | | | | | | | | | Add g_main_context_ref_thread_default(), which always returns a reffed GMainContext, rather than sometimes returning a (non-reffed) GMainContext, and sometimes returning NULL. This simplifies the bookkeeping in any code that needs to keep a reference to the thread-default context for a while. https://bugzilla.gnome.org/show_bug.cgi?id=660994
* Stop using glib-genmarshal at build timeColin Walters2011-06-201-4/+3
| | | | | | | | | | | | To help cross compilation, don't use glib-genmarshal in our build. This is easy now that we have g_cclosure_marshal_generic(). In gobject/, add gmarshal.[ch] to git (making the existing entry points stubs). In gio/, simply switch to using g_cclosure_marshal_generic(). https://bugzilla.gnome.org/show_bug.cgi?id=652168
* Make the closure variants of name owning and watching actually workMatthias Clasen2010-08-071-40/+52
| | | | | | | | | | The GClosure API is a bit funky (and badly documented), and requires you to set a marshaller on the closure, and the marshaller has an implicit 'this' argument, and the caller is reponsible for unsetting the values after invoking the closure. I've added some calls of the _with_closures variants to the gdbus-names test now.
* GDBus: Add GDBusSignalFlags and use it in g_dbus_connection_signal_subscribe()David Zeuthen2010-07-191-0/+2
| | | | | | | | | | | | This is currently unused but will probably be useful in the future. For example, we could have a _ARG0_IS_PATH to specify that arg0 should be used for arg0path. This commit breaks API and ABI. Users of g_dbus_connection_signal_subscribe() will need to port to this new version. Signed-off-by: David Zeuthen <davidz@redhat.com>
* gio/: fully remove gioalias hacksRyan Lortie2010-07-071-4/+0
|
* Bug 623143 – Never require non-closed connectionsDavid Zeuthen2010-06-291-3/+2
| | | | | | | | | | | | | | | | | | | | | There's a couple of places in GDBus where it's a programming error (e.g. we'll assert or spew via e.g. g_warning()) to use the API on a closed connection. This approach can never work since a GDBusConnection can be closed at any point in time outside of programmer control. Just change the code to return a run-time error (e.g. return G_IO_ERROR_CLOSED when sending messages, invoking methods) or silently accept the request (e.g. exporting objects, registering for signals) without doing anything. Note that a GDBusConnection object is always useless after being closed - e.g. there's no way to "reopen" a connection - the user will have to create a new object and use that instead. https://bugzilla.gnome.org/show_bug.cgi?id=623143 Signed-off-by: David Zeuthen <davidz@redhat.com>
* GDBus: Sink closures in _with_closures functionsJürg Billeter2010-06-181-5/+20
| | | | | | See https://bugzilla.gnome.org/show_bug.cgi?id=621092#c12 Signed-off-by: David Zeuthen <davidz@redhat.com>
* Add _with_closures alternative functions for those in GDBus thatTomeu Vizoso2010-06-101-0/+173
| | | | | | | | | | | | | accept more than one callback. g_bus_own_name_with_closures g_bus_own_name_on_connection_with_closures g_bus_watch_name_with_closures g_bus_watch_name_on_connection_with_closures g_bus_watch_proxy_with_closures g_bus_watch_proxy_on_connection_with_closures https://bugzilla.gnome.org/show_bug.cgi?id=621092
* GDBusConnection.call(): add 'reply_type' argumentRyan Lortie2010-05-241-0/+2
| | | | | | | | | | | | | | | | | | | | | | | 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.
* GDBus: Nuke G_BUS_TYPE_NONEDavid Zeuthen2010-05-131-1/+0
|
* Plug some mem leaksChristian Persch2010-05-131-2/+2
| | | | | | g_variant_get (v, "s", &str) returns a string copy; use "&s" instead. Signed-off-by: David Zeuthen <davidz@redhat.com>
* GDBus: Use call() instead of invoke_method()David Zeuthen2010-05-101-26/+26
| | | | | | | Lots of people been suggesting this. We still use MethodInvocation / method_invocation for handling incoming method calls so use call() instead of invoke_method() helps to separate the client and server facilities. Which is a good thing(tm).
* Update copyright years to include 2010Matthias Clasen2010-05-091-1/+1
|
* Some documentation tweaksMatthias Clasen2010-05-091-8/+10
| | | | | 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-2/+2
|
* Add "Since: 2.26" to all new GDBus APIDavid Zeuthen2010-05-061-2/+8
|
* Set up gtk-doc for GDBusDavid Zeuthen2010-05-061-2/+2
| | | | | | | | 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/+713
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>