Bundle key type was added for osp application
authorSangSoo Lee <constant.lee@samsung.com>
Thu, 4 Apr 2013 11:41:08 +0000 (20:41 +0900)
committerJaekyun Lee <jkyun.lee@samsung.com>
Wed, 17 Apr 2013 02:00:04 +0000 (11:00 +0900)
Change-Id: Ifbf4496f30694d144141a5dd7946e6800ca34cf2

packaging/nfc-manager.spec
src/manager/net_nfc_app_util.c

index 286c97c..e9f18d6 100644 (file)
@@ -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
index 8d09d65..f7630ce 100644 (file)
 #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);