}
int
+syscommon_resman_get_resource_attr_int_sync(int resource_id, u_int64_t attr_id, int32_t *data)
+{
+ int ret;
+
+ ret = update_resource_attr(find_resource(resource_id), attr_id);
+ if (ret != 0)
+ return ret;
+
+ return syscommon_resman_get_resource_attr_int(resource_id, attr_id, data);
+}
+
+int
syscommon_resman_get_resource_attr_int64(int resource_id, u_int64_t attr_id, int64_t *data)
{
struct syscommon_resman_resource_attribute_value *attr_value = NULL;
}
int
+syscommon_resman_get_resource_attr_int64_sync(int resource_id, u_int64_t attr_id, int64_t *data)
+{
+ int ret;
+
+ ret = update_resource_attr(find_resource(resource_id), attr_id);
+ if (ret != 0)
+ return ret;
+
+ return syscommon_resman_get_resource_attr_int64(resource_id, attr_id, data);
+}
+
+int
syscommon_resman_get_resource_attr_uint(int resource_id, u_int64_t attr_id, u_int32_t *data)
{
struct syscommon_resman_resource_attribute_value *attr_value = NULL;
}
int
+syscommon_resman_get_resource_attr_uint_sync(int resource_id, u_int64_t attr_id, u_int32_t *data)
+{
+ int ret;
+
+ ret = update_resource_attr(find_resource(resource_id), attr_id);
+ if (ret != 0)
+ return ret;
+
+ return syscommon_resman_get_resource_attr_uint(resource_id, attr_id, data);
+}
+
+int
syscommon_resman_get_resource_attr_uint64(int resource_id, u_int64_t attr_id, u_int64_t *data)
{
struct syscommon_resman_resource_attribute_value *attr_value = NULL;
}
int
+syscommon_resman_get_resource_attr_uint64_sync(int resource_id, u_int64_t attr_id, u_int64_t *data)
+{
+ int ret;
+
+ ret = update_resource_attr(find_resource(resource_id), attr_id);
+ if (ret != 0)
+ return ret;
+
+ return syscommon_resman_get_resource_attr_uint64(resource_id, attr_id, data);
+}
+
+int
syscommon_resman_get_resource_attr_double(int resource_id, u_int64_t attr_id, double *data)
{
struct syscommon_resman_resource_attribute_value *attr_value = NULL;
}
int
+syscommon_resman_get_resource_attr_double_sync(int resource_id, u_int64_t attr_id, double *data)
+{
+ int ret;
+
+ ret = update_resource_attr(find_resource(resource_id), attr_id);
+ if (ret != 0)
+ return ret;
+
+ return syscommon_resman_get_resource_attr_double(resource_id, attr_id, data);
+}
+
+int
syscommon_resman_get_resource_attr_string(int resource_id, u_int64_t attr_id, char *data)
{
struct syscommon_resman_resource_attribute_value *attr_value = NULL;
}
int
+syscommon_resman_get_resource_attr_string_sync(int resource_id, u_int64_t attr_id, char *data)
+{
+ int ret;
+
+ ret = update_resource_attr(find_resource(resource_id), attr_id);
+ if (ret != 0)
+ return ret;
+
+ return syscommon_resman_get_resource_attr_string(resource_id, attr_id, data);
+}
+
+int
syscommon_resman_get_resource_attr_array(int resource_id, u_int64_t attr_id, struct syscommon_resman_array_value **data)
{
struct syscommon_resman_resource_attribute_value *attr_value = NULL;
}
int
+syscommon_resman_get_resource_attr_array_sync(int resource_id, u_int64_t attr_id, struct syscommon_resman_array_value **data)
+{
+ int ret;
+
+ ret = update_resource_attr(find_resource(resource_id), attr_id);
+ if (ret != 0)
+ return ret;
+
+ return syscommon_resman_get_resource_attr_array(resource_id, attr_id, data);
+}
+
+int
syscommon_resman_get_resource_attr_ptr(int resource_id, u_int64_t attr_id, void **data)
{
struct syscommon_resman_resource_attribute_value *attr_value = NULL;
return 0;
}
+int
+syscommon_resman_get_resource_attr_ptr_sync(int resource_id, u_int64_t attr_id, void **data)
+{
+ int ret;
+
+ ret = update_resource_attr(find_resource(resource_id), attr_id);
+ if (ret != 0)
+ return ret;
+
+ return syscommon_resman_get_resource_attr_ptr(resource_id, attr_id, data);
+}
+
static inline bool
is_resource_attr_visible(struct syscommon_resman_resource *resource,
const struct syscommon_resman_resource_attribute *attr)
int syscommon_resman_get_resource_list_json(char **json_string);
int syscommon_resman_get_resource_attr_int(int resource_id, u_int64_t attr_id, int32_t *data);
+int syscommon_resman_get_resource_attr_int_sync(int resource_id, u_int64_t attr_id, int32_t *data);
int syscommon_resman_get_resource_attr_int64(int resource_id, u_int64_t attr_id, int64_t *data);
+int syscommon_resman_get_resource_attr_int64_sync(int resource_id, u_int64_t attr_id, int64_t *data);
int syscommon_resman_get_resource_attr_uint(int resource_id, u_int64_t attr_id, u_int32_t *data);
+int syscommon_resman_get_resource_attr_uint_sync(int resource_id, u_int64_t attr_id, u_int32_t *data);
int syscommon_resman_get_resource_attr_uint64(int resource_id, u_int64_t attr_id, u_int64_t *data);
+int syscommon_resman_get_resource_attr_uint64_sync(int resource_id, u_int64_t attr_id, u_int64_t *data);
int syscommon_resman_get_resource_attr_double(int resource_id, u_int64_t attr_id, double *data);
+int syscommon_resman_get_resource_attr_double_sync(int resource_id, u_int64_t attr_id, double *data);
int syscommon_resman_get_resource_attr_string(int resource_id, u_int64_t attr_id, char *data);
+int syscommon_resman_get_resource_attr_string_sync(int resource_id, u_int64_t attr_id, char *data);
int syscommon_resman_get_resource_attr_array(int resource_id, u_int64_t attr_id, struct syscommon_resman_array_value **data);
+int syscommon_resman_get_resource_attr_array_sync(int resource_id, u_int64_t attr_id, struct syscommon_resman_array_value **data);
int syscommon_resman_get_resource_attr_ptr(int resource_id, u_int64_t attr_id, void **data);
+int syscommon_resman_get_resource_attr_ptr_sync(int resource_id, u_int64_t attr_id, void **data);
int syscommon_resman_set_resource_attr_interest(int resource_id, u_int64_t interest_mask);
int syscommon_resman_unset_resource_attr_interest(int resource_id, u_int64_t interest_mask);