guint subscription_id;
};
-//This code is better. However, this code needs to be verified.
-//#define D_BUS_REPLY_NULL(ivc) g_dbus_method_invocation_return_value(ivc, NULL);
-
+/*
+ * If reply signature is existed, GDBus allows the return type
+ * to declared type or error.
+ *
+ * However, before GDBus is applied, resourced returns NULL
+ * when error is occurred.
+ *
+ * Therefore, for backward compatibility, we don't use the function
+ * g_dbus_method_invocation_return_error and return NULL with sending new message
+ *
+ * cf) Process resource usage functions use return_error because
+ * it is only for Runtime-info (we can control this package)
+ */
#define D_BUS_REPLY_NULL(ivc) \
{ \
GDBusMessage *re = g_dbus_message_new_method_reply(g_dbus_method_invocation_get_message(ivc)); \