Commit 63561206 authored by Slava Monich's avatar Slava Monich

[libmce-glib] Split MCE request and signal specs

parent 37495221
......@@ -41,7 +41,8 @@ SRC = \
mce_display.c \
mce_proxy.c
GEN_SRC = \
com.nokia.mce.c
com.nokia.mce.request.c \
com.nokia.mce.signal.c
#
# Directories
......
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE node PUBLIC
"-//freedesktop//DTD D-Bus Object Introspection 1.0//EN"
"http://standards.freedesktop.org/dbus/1.0/introspect.dtd">
<node name="/com/nokia/mce/request">
<interface name="com.nokia.mce.request">
<method name="get_display_status">
<arg direction="out" name="display_state" type="s"/>
</method>
</interface>
</node>
......@@ -3,13 +3,6 @@
"-//freedesktop//DTD D-Bus Object Introspection 1.0//EN"
"http://standards.freedesktop.org/dbus/1.0/introspect.dtd">
<node name="/com/nokia/mce/signal">
<!-- com.nokia.mce.request -->
<interface name="com.nokia.mce.request">
<method name="get_display_status">
<arg direction="out" name="display_state" type="s"/>
</method>
</interface>
<!-- com.nokia.mce.signal -->
<interface name="com.nokia.mce.signal">
<signal name="display_status_ind">
<arg name="display_state" type="s"/>
......
......@@ -38,10 +38,12 @@
#include "mce_proxy.h"
#include "mce_log_p.h"
#include "mce/dbus-names.h"
#include "mce/mode-names.h"
/* Generated headers */
#include "com.nokia.mce.h"
#include "com.nokia.mce.request.h"
#include "com.nokia.mce.signal.h"
struct mce_display_priv {
MceProxy* proxy;
......@@ -251,7 +253,7 @@ mce_display_init(
priv->proxy_valid_id = mce_proxy_add_valid_changed_handler(priv->proxy,
mce_display_valid_changed, self);
priv->display_status_ind_id = g_signal_connect(priv->proxy->signal,
"display_status_ind", G_CALLBACK(mce_display_status_ind), self);
MCE_DISPLAY_SIG, G_CALLBACK(mce_display_status_ind), self);
}
static
......
......@@ -40,7 +40,8 @@
#include "mce/dbus-names.h"
/* Generated headers */
#include "com.nokia.mce.h"
#include "com.nokia.mce.request.h"
#include "com.nokia.mce.signal.h"
GLOG_MODULE_DEFINE("mce");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment