Change native api implementation 00/58600/2 submit/tizen/20160202.070657
authorJihoon Jung <jh8801.jung@samsung.com>
Tue, 2 Feb 2016 06:34:05 +0000 (15:34 +0900)
committerJihoon Jung <jh8801.jung@samsung.com>
Tue, 2 Feb 2016 07:01:20 +0000 (16:01 +0900)
- Add condition check in mtp_remove_mtp_event_cb
- Change doxygen correctly

Change-Id: I5613ae94f6e1214c99a4a961e0ef6da42855b48b

include/mtp.h
packaging/capi-network-mtp.spec
src/mtp.c

index 4b5dc95c82563f6e4014c2e4e8e2604d0d8fb184..663a0fdec8efead7151a0b4b22041faa4108b968 100755 (executable)
@@ -347,8 +347,9 @@ int mtp_add_mtp_event_cb(mtp_event_cb event_cb, void *user_data);
  * @retval #MTP_ERROR_NONE Successful
  * @retval #MTP_ERROR_NOT_SUPPORTED MTP is not supported
  * @retval #MTP_ERROR_NOT_INITIALIZED MTP is not initialized
+ * @retval #MTP_ERROR_INVALID_PARAMETER Invalid parameter
  *
- * @see mtp_set_mtp_event_cb()
+ * @see mtp_add_mtp_event_cb()
  */
 int mtp_remove_mtp_event_cb(mtp_event_cb event_cb);
 
index da81659c5dfa46d1b9fd28347fdb194c7cc34ce7..3bbf9d2143d8a3d6691e312869b03a255f6e607a 100755 (executable)
@@ -1,6 +1,6 @@
 Name:       capi-network-mtp
 Summary:    A MTP library in Native API
-Version:    1.3.7
+Version:    1.3.8
 Release:    1
 Group:      Network & Connectivity/Other
 License:    Apache-2.0
index e1bd1894ae0f1cdbaa92eebf862a078c50abaf5e..3ff4f7de572c2610a80de86e5f8bc1f03f443dfe 100755 (executable)
--- a/src/mtp.c
+++ b/src/mtp.c
@@ -277,6 +277,7 @@ int mtp_remove_mtp_event_cb(mtp_event_cb callback)
 
        CHECK_SUPPORTED();
        CHECK_INIT();
+       cond_expr_ret(callback == NULL, MTP_ERROR_INVALID_PARAMETER);
 
        /* precondition check end */