From 08a28337118f5474b6ce73d3024dbd88d994cb93 Mon Sep 17 00:00:00 2001 From: Kazumasa Mitsunari Date: Thu, 8 Mar 2018 12:08:11 +0900 Subject: Clean: clean up duplicate code Change-Id: I99fdddbefa5fbb36bd0185a7541c7ff4eb4c921f Signed-off-by: Kazumasa Mitsunari --- src/sm-helper.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/sm-helper.h') diff --git a/src/sm-helper.h b/src/sm-helper.h index 1737f48..8c26049 100644 --- a/src/sm-helper.h +++ b/src/sm-helper.h @@ -20,8 +20,10 @@ #define AFB_BINDING_VERSION 2 #include #include +#include #include -//#include +#define SEND_RESULT(...) send_result(__VA_ARGS__, __FUNCTION__) +#define SEND_RESULT_NO_RESP(...) send_result_no_resp(__VA_ARGS__, __FUNCTION__) typedef enum REQ_ERROR { @@ -89,6 +91,7 @@ GVariant* create_source_data(guint16 sourceID, guint16 domainID, const char* app struct main_sound_property_s mainPropertyList, struct notification_config_s NConfRouting, struct notification_config_s NConfCommand); GVariant* create_domain_data(struct domain_data*); - +bool send_result_no_resp(const GError* result_of_send, const char* function); +bool send_result(const GError* result_of_send, struct afb_req req, const char* function); #endif /*AM_HELPER_H*/ \ No newline at end of file -- cgit 1.2.3-korg