diff options
author | SangSoo Lee <constant.lee@samsung.com> | 2013-04-04 20:41:08 +0900 |
---|---|---|
committer | Jaekyun Lee <jkyun.lee@samsung.com> | 2013-04-17 11:00:04 +0900 |
commit | 188518f9c1c43ffb2e19be4be0bc411542916ae9 (patch) | |
tree | ddc249c7c46027fb3b5b6f5703ab8d45bb087771 | |
parent | 081f4b13ef79404ff0f8d0c020310a355d7ff37a (diff) | |
download | nfc-manager-neard-188518f9c1c43ffb2e19be4be0bc411542916ae9.tar.gz nfc-manager-neard-188518f9c1c43ffb2e19be4be0bc411542916ae9.tar.bz2 nfc-manager-neard-188518f9c1c43ffb2e19be4be0bc411542916ae9.zip |
Bundle key type was added for osp application
Change-Id: Ifbf4496f30694d144141a5dd7946e6800ca34cf2
-rw-r--r-- | packaging/nfc-manager.spec | 2 | ||||
-rw-r--r-- | src/manager/net_nfc_app_util.c | 9 |
2 files changed, 10 insertions, 1 deletions
diff --git a/packaging/nfc-manager.spec b/packaging/nfc-manager.spec index 286c97c..e9f18d6 100644 --- a/packaging/nfc-manager.spec +++ b/packaging/nfc-manager.spec @@ -1,6 +1,6 @@ Name: nfc-manager Summary: NFC framework manager -Version: 0.0.37 +Version: 0.0.38 Release: 1 Group: libs License: Flora Software License diff --git a/src/manager/net_nfc_app_util.c b/src/manager/net_nfc_app_util.c index 8d09d65..f7630ce 100644 --- a/src/manager/net_nfc_app_util.c +++ b/src/manager/net_nfc_app_util.c @@ -45,6 +45,10 @@ #include "net_nfc_app_util_private.h" //#include "syspopup_caller.h" +#define OSP_K_COND "__OSP_COND_NAME__" +#define OSP_K_COND_TYPE "nfc" +#define OSP_K_LAUNCH_TYPE "__OSP_LAUNCH_TYPE__" + static bool _net_nfc_app_util_get_operation_from_record(ndef_record_s *record, char *operation, size_t length); static bool _net_nfc_app_util_get_mime_from_record(ndef_record_s *record, char *mime, size_t length); #ifdef USE_FULL_URI @@ -65,6 +69,8 @@ static const char *sbeam_mime_type[] = NULL }; +static const char osp_launch_type_condition[] = "condition"; + net_nfc_error_e net_nfc_app_util_process_ndef(data_s *data) { net_nfc_error_e result = NET_NFC_UNKNOWN_ERROR; @@ -734,6 +740,9 @@ int net_nfc_app_util_appsvc_launch(const char *operation, const char *uri, const appsvc_add_data(bd, "data", data); } + bundle_add(bd, OSP_K_COND, OSP_K_COND_TYPE); + bundle_add(bd, OSP_K_LAUNCH_TYPE, osp_launch_type_condition); + result = appsvc_run_service(bd, 0, NULL, NULL); bundle_free(bd); |