%cmake . \
-DMAJORVER=${MAJORVER} -DFULLVER=%{version} \
- -DLIB_DIR=%{_libdir} -DBIN_DIR=%{_bindir} -DSBIN_DIR=%{_sbindir} \
- -DNETWORK_FW_DATADIR=%{NETWORK_FW_DATADIR} \
- -DDBDIR=%{DBDIR}
+ -DLIB_DIR=%{_libdir} -DBIN_DIR=%{_bindir} -DSBIN_DIR=%{_sbindir} \
+ -DNETWORK_FW_DATADIR=%{NETWORK_FW_DATADIR} \
+ -DDBDIR=%{DBDIR}
make %{?_smp_mflags}
%install
%license LICENSE
%defattr(-,root,root,-)
%{_bindir}/%{name}
-%{_bindir}/subowner
+%{_bindir}/d2d-subowner
%{_bindir}/fn-manager
%attr(644,root,root) %{_datadir}/dbus-1/system-services/*
%attr(644,root,root) %{_unitdir}/d2dm.service
MESSAGE("===================================================================")
SET(INTROSPECTION_PATH ${CMAKE_CURRENT_SOURCE_DIR}/introspection)
-MESSAGE("KSR : ${INTROSPECTION_PATH}")
ADD_CUSTOM_COMMAND(
OUTPUT dbus
COMMAND gdbus-codegen
g_dbus_connection_signal_unsubscribe((GDBusConnection *)service->connection, id);\r
}\r
\r
-static void _wmeshd_unsubscribe_event(d2dm_service *service)\r
+static void _d2dm_unsubscribe_event(d2dm_service *service)\r
{\r
d2dm_check_null_ret("service", service);\r
\r
return D2DM_ERROR_INVALID_PARAMETER;\r
\r
/* Unsubscribe events */\r
- _wmeshd_unsubscribe_event(service);\r
+ _d2dm_unsubscribe_event(service);\r
\r
g_cancellable_cancel(service->ca);\r
g_object_unref(service->ca);\r
enabler_complete_enable(object, invocation, ret);\r
service->d2dm_activated = TRUE;\r
\r
- if (service->d2dp_activated) {\r
+ if (!service->d2dp_activated) {\r
/* Enable d2d proxy */\r
}\r
service->d2dp_activated = TRUE;\r
D2DM_LOGE("Service interface init. failed!");
goto END;
}
- /* Run mesh service */
+ /* Run d2d-manager service */
ret = d2dm_service_run(service);
if (G_UNLIKELY(FALSE == ret)) {
D2DM_LOGE("Run service failed!");
#include <gio/gio.h>\r
#include <tizen.h>\r
\r
-/**< Internal error code with mesh daemon. It should be matched with API side */\r
+/**< Internal error code with d2dm daemon. It should be matched with API side */\r
typedef enum {\r
D2DM_ERROR_NONE = 0, /**< Successful */\r
D2DM_ERROR_IO_ERROR, /**< I/O error */\r
D2DM_ERROR_IN_PROGRESS /**< operation is in progress */\r
} d2dm_error_e;\r
\r
-/**< mesh service structure */\r
+/**< d2d-manager service structure */\r
typedef struct _d2d_service {\r
GMainLoop *main_loop; /**< Service main-loop */\r
guint dbus_id; /**< D-Bus id */\r
MESSAGE(" - Set source folder")
FILE(GLOB SUBOWNER_SRCS *.c)
-SET(SUBOWNER "subowner")
+SET(SUBOWNER "d2d-subowner")
ADD_EXECUTABLE(${SUBOWNER} ${SUBOWNER_SRCS})
TARGET_LINK_LIBRARIES(${SUBOWNER} ${daemon_pkgs_LIBRARIES} pthread)
INSTALL(TARGETS ${SUBOWNER} DESTINATION bin)
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>\r
+\r
+<!DOCTYPE node PUBLIC\r
+ "-//freedesktop//DTD D-Bus Object Introspection 1.0//EN"\r
+ "http://standards.freedesktop.org/dbus/1.0/introspect.dtd">\r
+\r
+<node>\r
+ <interface name="net.d2dm">\r
+ <!-- Method definitions -->\r
+ <method name="find_peer">\r
+ <arg type="i" name="result" direction="out"/>\r
+ </method>\r
+\r
+ <!-- Signal (D-Bus) definitions -->\r
+ <signal name="proxy_enabled">\r
+ <arg type="i" name="result" direction="out"/>\r
+ </signal>\r
+ <signal name="find_peer_done">\r
+ </signal>\r
+ </interface>\r
+</node>\r
--- /dev/null
+<?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>
+ <interface name="net.d2ds.enabler">
+ <!-- Method definitions -->
+ <method name="enable">
+ <arg type="i" name="result" direction="out"/>
+ </method>
+ <method name="disable">
+ <arg type="i" name="result" direction="out"/>
+ </method>
+ </interface>
+</node>
--- /dev/null
+gdbus-codegen --interface-prefix net.d2ds. \
+ --generate-c-code d2ds-generated-code \
+ --c-generate-object-manager \
+ --generate-docbook generated-docs \
+ d2ds.xml \
+ enabler.xml