api: add new api to register insert/remove callback 88/74188/6 accepted/tizen/common/20160615.193630 accepted/tizen/ivi/20160616.002455 accepted/tizen/mobile/20160616.002410 accepted/tizen/tv/20160616.002402 accepted/tizen/wearable/20160616.002351 submit/tizen/20160615.062014
authorTaeyoung Kim <ty317.kim@samsung.com>
Mon, 13 Jun 2016 05:58:08 +0000 (14:58 +0900)
committertaeyoung <ty317.kim@samsung.com>
Wed, 15 Jun 2016 06:03:29 +0000 (15:03 +0900)
commite8821fefeb67d6cfcbc203ff40112a455be576ca
treed7cb37453ee38867fba11cb850bdc8b51883de11
parentbeb1dca036d038def39efb82373a11c3ab3f0988
api: add new api to register insert/remove callback

- Previously, storage event register apis get the storage ID
  by the input parameter. Storage IDs are created when
  storages are connected, and storage IDs are changed
  even if same storage is re-connected. Thus Previous apis
  cannot support "insert" event.

- Now, new apis are added. They get storage type to register
  events. Thus they can support "insert" event too.

   = int storage_set_changed_cb(storage_type_e type, storage_changed_cb callback, void *user_data);
   = int storage_unset_changed_cb(storage_type_e type, storage_changed_cb callback);

Change-Id: Icbc6513f2777f8df760365c5c65512714b295590
Signed-off-by: taeyoung <ty317.kim@samsung.com>
include/common.h
include/storage-expand.h
src/storage-external-dbus.c
src/storage-external.c
src/storage.c