diff options
author | Lars Uebernickel <lars.uebernickel@canonical.com> | 2013-08-28 11:44:16 +0000 |
---|---|---|
committer | Tarmac <Unknown> | 2013-08-28 11:44:16 +0000 |
commit | e626e668bbe719bfbdf227f000eb01805a551bdc (patch) | |
tree | 68b5fcf44d1bb14c535a6f909d8554252a1300da /vapi/bus-watcher.vapi | |
parent | dc721ac25d910a08fc3806330b2f8bd8d3b2a4dd (diff) | |
parent | 2bc9546ec1d4c1eb1aaf5973478a0b1edcc17278 (diff) | |
download | ayatana-indicator-sound-e626e668bbe719bfbdf227f000eb01805a551bdc.tar.gz ayatana-indicator-sound-e626e668bbe719bfbdf227f000eb01805a551bdc.tar.bz2 ayatana-indicator-sound-e626e668bbe719bfbdf227f000eb01805a551bdc.zip |
Use bus_watch_namespace() for more robust monitoring of mpris players appearing or disappearing on the bus.
Approved by Charles Kerr, PS Jenkins bot.
Diffstat (limited to 'vapi/bus-watcher.vapi')
-rw-r--r-- | vapi/bus-watcher.vapi | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/vapi/bus-watcher.vapi b/vapi/bus-watcher.vapi new file mode 100644 index 0000000..60dacff --- /dev/null +++ b/vapi/bus-watcher.vapi @@ -0,0 +1,25 @@ +/* + * Copyright 2013 Canonical Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + * Authors: + * Lars Uebernickel <lars.uebernickel@canonical.com> + */ + +namespace BusWatcher { + [CCode (cheader_filename = "bus-watch-namespace.h", cname = "bus_watch_namespace")] + public static uint watch_namespace (GLib.BusType bus_type, string name_space, + [CCode (delegate_target_pos = 4.9)] owned GLib.BusNameAppearedCallback? name_appeared, + [CCode (delegate_target_pos = 4.9)] owned GLib.BusNameVanishedCallback? name_vanished); +} |