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 4b5dc95..663a0fd 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 da81659..3bbf9d2 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 e1bd189..3ff4f7d 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 */