diff options
| author | Thomi Richards <thomi.richards@canonical.com> | 2013-05-07 09:34:25 +1200 |
|---|---|---|
| committer | Thomi Richards <thomi.richards@canonical.com> | 2013-05-07 09:34:25 +1200 |
| commit | bcc7170a63acbc4c5350e5deb9f302fb41fd48c2 (patch) | |
| tree | 25e73d3a9cf4eec1cbe30e1765815b5692da51d5 | |
| parent | aa80a09f8512b41e343fb7560a2f649ce286fe6b (diff) | |
Added GetVersion method.
(bzr r3316.3.1)
| -rw-r--r-- | unity-shared/DebugDBusInterface.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/unity-shared/DebugDBusInterface.cpp b/unity-shared/DebugDBusInterface.cpp index 41f8fc974..8d6888433 100644 --- a/unity-shared/DebugDBusInterface.cpp +++ b/unity-shared/DebugDBusInterface.cpp @@ -69,6 +69,10 @@ const std::string INTROSPECTION_XML = " <arg type='a(sv)' name='state' direction='out' />" " </method>" "" + " <method name='GetVersion'>" + " <arg type='s' name='version' direction='out' />" + " </method>" + "" " </interface>" "" " <interface name='com.canonical.Unity.Debug.Logging'>" @@ -116,6 +120,10 @@ GVariant* DebugDBusInterface::HandleDBusMethodCall(std::string const& method, GV return GetState(input); } + else if (method == "GetVersion") + { + return g_variant_new("(s)", "1.2"); + } else if (method == "StartLogToFile") { const gchar* log_path; |
