[dconf/wip/reorg] engine: add dconf_call_handle_get_expected_type()
- From: Ryan Lortie <ryanl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dconf/wip/reorg] engine: add dconf_call_handle_get_expected_type()
- Date: Wed, 11 Jul 2012 16:43:16 +0000 (UTC)
commit 9b5e43dc84740ac4ee2897a87d79c820e0c25ccf
Author: Ryan Lortie <desrt desrt ca>
Date: Wed Jul 11 11:31:09 2012 -0400
engine: add dconf_call_handle_get_expected_type()
We were storing the expected type of the reply in the call handle
already but not really doing anything with it. Provide an API to access
it.
engine/dconf-engine.c | 6 ++++++
engine/dconf-engine.h | 2 ++
2 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/engine/dconf-engine.c b/engine/dconf-engine.c
index 8d9837a..2edbb50 100644
--- a/engine/dconf-engine.c
+++ b/engine/dconf-engine.c
@@ -656,6 +656,12 @@ dconf_engine_call_handle_new (DConfEngine *engine,
return handle;
}
+const GVariantType *
+dconf_engine_call_handle_get_expected_type (DConfEngineCallHandle *handle)
+{
+ return handle->expected_reply;
+}
+
void
dconf_engine_call_handle_reply (DConfEngineCallHandle *handle,
GVariant *parameter,
diff --git a/engine/dconf-engine.h b/engine/dconf-engine.h
index 96ac42b..9335e02 100644
--- a/engine/dconf-engine.h
+++ b/engine/dconf-engine.h
@@ -88,6 +88,8 @@ void dconf_engine_change_notify (DConfEn
/* These functions are implemented by the engine */
G_GNUC_INTERNAL
+const GVariantType * dconf_engine_call_handle_get_expected_type (DConfEngineCallHandle *handle);
+G_GNUC_INTERNAL
void dconf_engine_call_handle_reply (DConfEngineCallHandle *handle,
GVariant *parameters,
const GError *error);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]