diff options
author | Siegfried-Angel Gevatter Pujals <siegfried@gevatter.com> | 2012-07-31 17:59:34 +0200 |
---|---|---|
committer | Siegfried-Angel Gevatter Pujals <siegfried@gevatter.com> | 2012-07-31 17:59:34 +0200 |
commit | ca7a8f8f88b30c89e1251269f64e2966818da4bb (patch) | |
tree | c791b9251a643ef67d3c557e606b78d1ea0a98a1 /extensions | |
parent | 7b437e57dc6ce872320d000b16031b6aaf0d3d85 (diff) | |
download | zeitgeist-ca7a8f8f88b30c89e1251269f64e2966818da4bb.tar.gz |
Remove libzeitgeist-private.vapi
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/Makefile.am | 2 | ||||
-rw-r--r-- | extensions/storage-monitor.vala | 29 |
2 files changed, 30 insertions, 1 deletions
diff --git a/extensions/Makefile.am b/extensions/Makefile.am index b0a47e00..3c434728 100644 --- a/extensions/Makefile.am +++ b/extensions/Makefile.am @@ -24,7 +24,7 @@ VALAFLAGS = \ --pkg gio-2.0 \ --pkg sqlite3 \ --pkg gmodule-2.0 \ - $(top_srcdir)/libzeitgeist/zeitgeist-private.vapi \ + $(top_srcdir)/libzeitgeist/zeitgeist-2.0.vapi \ $(top_srcdir)/src/zeitgeist-engine.vapi \ $(NULL) diff --git a/extensions/storage-monitor.vala b/extensions/storage-monitor.vala index f1c1eeed..d5c581aa 100644 --- a/extensions/storage-monitor.vala +++ b/extensions/storage-monitor.vala @@ -541,6 +541,35 @@ namespace Zeitgeist } } + [DBus (name = "org.freedesktop.NetworkManager")] + internal interface NetworkManagerDBus : Object + { + [DBus (name = "state")] + public abstract uint32 state () throws IOError; + public signal void state_changed (uint32 state); + } + + [DBus (name = "net.connman.Manager")] + internal interface ConnmanManagerDBus : Object + { + public abstract string get_state () throws IOError; + public signal void state_changed (string state); + } + + // vala doesn't include proper headers, this fixes it + private static void vala_bug_workaround_2 () + { + try + { + Bus.get_sync (BusType.SESSION, null); + } + catch (Error err) + { + // kill "unused method" warning + vala_bug_workaround_2 (); + } + } + [ModuleInit] #if BUILTIN_EXTENSIONS public static Type storage_monitor_init (TypeModule module) |