+[Version] capi-maps-service_0.6.9
+[Date] 24 Nov 2016
+[Title] added an api for plugins to get length of maps_item_list_h
+[Developer] Seechan Kim <cbible.kim@samsung.com>
+
[Version] capi-maps-service_0.6.8
[Date] 11 Nov 2016
[Title] fixed some bugs and improved gestures
int maps_item_list_foreach_noclone(maps_item_list_h list, maps_item_list_foreach_noclone_cb callback, void *user_data);
/**
+ * @brief Gets the number of elements in the specified list.
+ * @since_tizen 3.0
+ *
+ * @param[in] list The handle of list
+ * @param[out] length The number of elements in the specified list
+ * @return 0 on success, otherwise a negative error value
+ * @retval #MAPS_ERROR_NONE Successful
+ * @retval #MAPS_ERROR_INVALID_PARAMETER Invalid parameter
+ *
+ * @pre @a list is created using maps_item_list_create().
+ *
+ * @see maps_item_list_create()
+ * @see maps_item_list_append()
+ */
+int maps_item_list_get_length(maps_item_list_h list, int *length);
+
+/**
* @}
*/
Name: capi-maps-service
Summary: Tizen Maps Service API
-Version: 0.6.8
+Version: 0.6.9
Release: 1
Group: Location/API
License: Apache-2.0
return error;
}
+EXPORT_API int maps_item_list_get_length(maps_item_list_h list, int *length)
+{
+ if (!maps_condition_check_maps_feature())
+ return MAPS_ERROR_NOT_SUPPORTED;
+ if (!list || !length)
+ return MAPS_ERROR_INVALID_PARAMETER;
+ maps_item_list_s *l = (maps_item_list_s *)list;
+ if (!l->l)
+ *length = 0;
+ else
+ *length = g_list_length(l->l);
+ return MAPS_ERROR_NONE;
+}
+
/*----------------------------------------------------------------------------*/
typedef struct _maps_string_hashtable_s