<arg type="s" name="uri_path" direction="in"/>
<arg type="as" name="resource_types" direction="in"/>
<arg type="i" name="ifaces" direction="in"/>
- <arg type="y" name="properties" direction="in"/>
+ <arg type="i" name="properties" direction="in"/>
<arg type="u" name="signal_number" direction="in"/>
<arg type="x" name="resource" direction="out"/>
</method>
const gchar *uri_path,
const gchar* const *resource_types,
gint ifaces,
- guchar properties,
+ gint properties,
guint signal_number)
{
FN_CALL;
OCResourceHandle icd_ioty_register_resource(const char *uri_path,
- const char* const* res_types, int ifaces, uint8_t properties)
+ const char* const* res_types, int ifaces, int properties)
{
FN_CALL;
int i;
void icd_ioty_deinit(GThread *thread);
OCResourceHandle icd_ioty_register_resource(const char *uri_path,
- const char* const* res_types, int ifaces, uint8_t properties);
+ const char* const* res_types, int ifaces, int properties);
int icd_ioty_unregister_resource(OCResourceHandle handle);
API int iotcon_remote_resource_observer_start(iotcon_remote_resource_h resource,
- int observe_type,
+ iotcon_observe_type_e observe_type,
iotcon_query_h query,
iotcon_remote_resource_observe_cb cb,
void *user_data)
}
-API int iotcon_request_get_observer_action(iotcon_request_h request,
- int *action)
+API int iotcon_request_get_observer_action(iotcon_request_h request, int *action)
{
RETV_IF(NULL == request, IOTCON_ERROR_INVALID_PARAMETER);
RETV_IF(NULL == action, IOTCON_ERROR_INVALID_PARAMETER);
API int iotcon_resource_create(const char *uri_path,
iotcon_resource_types_h res_types,
int ifaces,
- uint8_t properties,
+ int properties,
iotcon_request_handler_cb cb,
void *user_data,
iotcon_resource_h *resource_handle)
}
-API int iotcon_resource_bind_interface(iotcon_resource_h resource, int iface)
+API int iotcon_resource_bind_interface(iotcon_resource_h resource,
+ iotcon_interface_e iface)
{
FN_CALL;
int ret;
}
-API int iotcon_notimsg_create(iotcon_representation_h repr, int iface,
+API int iotcon_notimsg_create(iotcon_representation_h repr, iotcon_interface_e iface,
iotcon_notimsg_h *notimsg_handle)
{
iotcon_notimsg_h msg;
}
-API int iotcon_response_set_interface(iotcon_response_h resp, int iface)
+API int iotcon_response_set_interface(iotcon_response_h resp, iotcon_interface_e iface)
{
RETV_IF(NULL == resp, IOTCON_ERROR_INVALID_PARAMETER);
*
* @see iotcon_list_foreach_int()
*/
-typedef int (*iotcon_list_int_cb)(int pos, const int value, void *user_data);
+typedef int (*iotcon_list_int_cb)(int pos, int value, void *user_data);
/**
* @brief Gets all integer values of the given list by invoking the callback function.
*
* @see iotcon_list_foreach_bool()
*/
-typedef int (*iotcon_list_bool_cb)(int pos, const bool value, void *user_data);
+typedef int (*iotcon_list_bool_cb)(int pos, bool value, void *user_data);
/**
* @brief Gets all boolean values of the given list by invoking the callback function.
*
* @see iotcon_list_foreach_double()
*/
-typedef int (*iotcon_list_double_cb)(int pos, const double value, void *user_data);
+typedef int (*iotcon_list_double_cb)(int pos, double value, void *user_data);
/**
* @brief Gets all double values of the given list by invoking the callback function.
* @see iotcon_response_create()
* @see iotcon_response_destroy()
*/
-int iotcon_response_set_interface(iotcon_response_h resp, int iface);
+int iotcon_response_set_interface(iotcon_response_h resp, iotcon_interface_e iface);
/**
* @brief The handle of device information.
int iotcon_resource_create(const char *uri_path,
iotcon_resource_types_h res_types,
int ifaces,
- uint8_t properties,
+ int properties,
iotcon_request_handler_cb cb,
void *user_data,
iotcon_resource_h *resource_handle);
* @see iotcon_resource_unbind_child_resource()
* @see iotcon_request_handler_cb()
*/
-int iotcon_resource_bind_interface(iotcon_resource_h resource, int iface);
+int iotcon_resource_bind_interface(iotcon_resource_h resource, iotcon_interface_e iface);
/**
* @brief Binds a type to the resource
* @see iotcon_resource_notify()
*/
int iotcon_remote_resource_observer_start(iotcon_remote_resource_h resource,
- int observe_type,
+ iotcon_observe_type_e observe_type,
iotcon_query_h query,
iotcon_remote_resource_observe_cb cb,
void *user_data);
* @see iotcon_remote_resource_observer_stop()
* @see iotcon_resource_notify()
*/
-int iotcon_notimsg_create(iotcon_representation_h repr, int iface,
+int iotcon_notimsg_create(iotcon_representation_h repr, iotcon_interface_e iface,
iotcon_notimsg_h *notimsg_handle);
/**