aboutsummaryrefslogtreecommitdiffstats
path: root/src/sm-helper.h
diff options
context:
space:
mode:
authorKazumasa Mitsunari <knimitz@witz-inc.co.jp>2018-03-08 12:08:11 +0900
committerKazumasa Mitsunari <knimitz@witz-inc.co.jp>2018-03-08 08:29:35 +0000
commit08a28337118f5474b6ce73d3024dbd88d994cb93 (patch)
treea174adc62b97c86bb8a76c293a621c5edcbdb5c7 /src/sm-helper.h
parentd17141136e7b75c174babce5b15e56fde6de063b (diff)
Clean: clean up duplicate code
Change-Id: I99fdddbefa5fbb36bd0185a7541c7ff4eb4c921f Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Diffstat (limited to 'src/sm-helper.h')
-rw-r--r--src/sm-helper.h7
1 files changed, 5 insertions, 2 deletions
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 <afb/afb-binding.h>
#include <stdint.h>
+#include <stdbool.h>
#include <glib.h>
-//#include <errno.h>
+#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