summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Lortie <desrt@desrt.ca>2012-07-11 11:31:09 -0400
committerRyan Lortie <desrt@desrt.ca>2012-07-11 11:32:04 -0400
commit9b5e43dc84740ac4ee2897a87d79c820e0c25ccf (patch)
treecfac7592a40dee840b69312d1dfb2865464a2c29
parent334daf4624fcb6bc72f4b19f3bb7ecaf9b4ee347 (diff)
downloaddconf-9b5e43dc84740ac4ee2897a87d79c820e0c25ccf.tar.gz
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.
-rw-r--r--engine/dconf-engine.c6
-rw-r--r--engine/dconf-engine.h2
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);