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 /src/bus-watch-namespace.h | |
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 'src/bus-watch-namespace.h')
-rw-r--r-- | src/bus-watch-namespace.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/bus-watch-namespace.h b/src/bus-watch-namespace.h new file mode 100644 index 0000000..215f6be --- /dev/null +++ b/src/bus-watch-namespace.h @@ -0,0 +1,34 @@ +/* + * 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; either version 2 of the + * License, or (at your option) any later version. + * + * 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/>. + * + * Author: Lars Uebernickel <lars.uebernickel@canonical.com> + */ + +#ifndef __BUS_WATCH_NAMESPACE_H__ +#define __BUS_WATCH_NAMESPACE_H__ + +#include <gio/gio.h> + +guint bus_watch_namespace (GBusType bus_type, + const gchar *name_space, + GBusNameAppearedCallback appeared_handler, + GBusNameVanishedCallback vanished_handler, + gpointer user_data, + GDestroyNotify user_data_destroy); + +void bus_unwatch_namespace (guint id); + +#endif |