Lines Matching refs:__api
70 # define __api __declspec(dllexport) macro
72 # define __api __declspec(dllimport) macro
75 # define __api __attribute__((visibility ("default"))) macro
77 # define __api macro
196 __api struct iio_scan_context * iio_create_scan_context(
204 __api void iio_scan_context_destroy(struct iio_scan_context *ctx);
214 __api ssize_t iio_scan_context_get_info_list(struct iio_scan_context *ctx,
221 __api void iio_context_info_list_free(struct iio_context_info **info);
228 __api __pure const char * iio_context_info_get_description(
236 __api __pure const char * iio_context_info_get_uri(
250 __api void iio_library_get_version(unsigned int *major,
259 __api void iio_strerror(int err, char *dst, size_t len);
267 __api __cnst bool iio_has_backend(const char *backend);
274 __api __cnst unsigned int iio_get_backends_count(void);
283 __api __cnst const char * iio_get_backend(unsigned int index);
303 __api struct iio_context * iio_create_default_context(void);
309 __api struct iio_context * iio_create_local_context(void);
319 __api struct iio_context * iio_create_xml_context(const char *xml_file);
330 __api struct iio_context * iio_create_xml_context_mem(
338 __api struct iio_context * iio_create_network_context(const char *host);
345 __api struct iio_context * iio_create_context_from_uri(const char *uri);
352 __api struct iio_context * iio_context_clone(const struct iio_context *ctx);
359 __api void iio_context_destroy(struct iio_context *ctx);
369 __api int iio_context_get_version(const struct iio_context *ctx,
376 __api __pure const char * iio_context_get_xml(const struct iio_context *ctx);
386 __api __pure const char * iio_context_get_name(const struct iio_context *ctx);
395 __api __pure const char * iio_context_get_description(
404 __api __pure unsigned int iio_context_get_attrs_count(
417 __api int iio_context_get_attr(
430 __api const char * iio_context_get_attr_value(
437 __api __pure unsigned int iio_context_get_devices_count(
446 __api __pure struct iio_device * iio_context_get_device(
457 __api __pure struct iio_device * iio_context_find_device(
468 __api int iio_context_set_timeout(
483 __api __pure const struct iio_context * iio_device_get_context(
490 __api __pure const char * iio_device_get_id(const struct iio_device *dev);
498 __api __pure const char * iio_device_get_name(const struct iio_device *dev);
504 __api __pure unsigned int iio_device_get_channels_count(
511 __api __pure unsigned int iio_device_get_attrs_count(
517 __api __pure unsigned int iio_device_get_buffer_attrs_count(
525 __api __pure struct iio_channel * iio_device_get_channel(
534 __api __pure const char * iio_device_get_attr(
542 __api __pure const char * iio_device_get_buffer_attr(
553 __api __pure struct iio_channel * iio_device_find_channel(
568 __api __pure const char * iio_device_find_attr(
582 __api __pure const char * iio_device_find_buffer_attr(
606 __api ssize_t iio_device_attr_read(const struct iio_device *dev,
620 __api int iio_device_attr_read_all(struct iio_device *dev,
633 __api int iio_device_attr_read_bool(const struct iio_device *dev,
644 __api int iio_device_attr_read_longlong(const struct iio_device *dev,
655 __api int iio_device_attr_read_double(const struct iio_device *dev,
677 __api ssize_t iio_device_attr_write(const struct iio_device *dev,
689 __api ssize_t iio_device_attr_write_raw(const struct iio_device *dev,
703 __api int iio_device_attr_write_all(struct iio_device *dev,
716 __api int iio_device_attr_write_bool(const struct iio_device *dev,
727 __api int iio_device_attr_write_longlong(const struct iio_device *dev,
738 __api int iio_device_attr_write_double(const struct iio_device *dev,
763 __api ssize_t iio_device_buffer_attr_read(const struct iio_device *dev,
776 __api int iio_device_buffer_attr_read_all(struct iio_device *dev,
789 __api int iio_device_buffer_attr_read_bool(const struct iio_device *dev,
800 __api int iio_device_buffer_attr_read_longlong(const struct iio_device *dev,
811 __api int iio_device_buffer_attr_read_double(const struct iio_device *dev,
834 __api ssize_t iio_device_buffer_attr_write(const struct iio_device *dev,
846 __api ssize_t iio_device_buffer_attr_write_raw(const struct iio_device *dev,
860 __api int iio_device_buffer_attr_write_all(struct iio_device *dev,
873 __api int iio_device_buffer_attr_write_bool(const struct iio_device *dev,
884 __api int iio_device_buffer_attr_write_longlong(const struct iio_device *dev,
895 __api int iio_device_buffer_attr_write_double(const struct iio_device *dev,
902 __api void iio_device_set_data(struct iio_device *dev, void *data);
908 __api void * iio_device_get_data(const struct iio_device *dev);
918 __api int iio_device_get_trigger(const struct iio_device *dev,
928 __api int iio_device_set_trigger(const struct iio_device *dev,
935 __api __pure bool iio_device_is_trigger(const struct iio_device *dev);
945 __api int iio_device_set_kernel_buffers_count(const struct iio_device *dev,
959 __api __pure const struct iio_device * iio_channel_get_device(
966 __api __pure const char * iio_channel_get_id(const struct iio_channel *chn);
974 __api __pure const char * iio_channel_get_name(const struct iio_channel *chn);
980 __api __pure bool iio_channel_is_output(const struct iio_channel *chn);
990 __api __pure bool iio_channel_is_scan_element(const struct iio_channel *chn);
996 __api __pure unsigned int iio_channel_get_attrs_count(
1005 __api __pure const char * iio_channel_get_attr(
1020 __api __pure const char * iio_channel_find_attr(
1030 __api __pure const char * iio_channel_attr_get_filename(
1055 __api ssize_t iio_channel_attr_read(const struct iio_channel *chn,
1069 __api int iio_channel_attr_read_all(struct iio_channel *chn,
1082 __api int iio_channel_attr_read_bool(const struct iio_channel *chn,
1093 __api int iio_channel_attr_read_longlong(const struct iio_channel *chn,
1104 __api int iio_channel_attr_read_double(const struct iio_channel *chn,
1126 __api ssize_t iio_channel_attr_write(const struct iio_channel *chn,
1138 __api ssize_t iio_channel_attr_write_raw(const struct iio_channel *chn,
1152 __api int iio_channel_attr_write_all(struct iio_channel *chn,
1165 __api int iio_channel_attr_write_bool(const struct iio_channel *chn,
1176 __api int iio_channel_attr_write_longlong(const struct iio_channel *chn,
1187 __api int iio_channel_attr_write_double(const struct iio_channel *chn,
1197 __api void iio_channel_enable(struct iio_channel *chn);
1202 __api void iio_channel_disable(struct iio_channel *chn);
1208 __api bool iio_channel_is_enabled(const struct iio_channel *chn);
1218 __api size_t iio_channel_read_raw(const struct iio_channel *chn,
1229 __api size_t iio_channel_read(const struct iio_channel *chn,
1240 __api size_t iio_channel_write_raw(const struct iio_channel *chn,
1251 __api size_t iio_channel_write(const struct iio_channel *chn,
1258 __api void iio_channel_set_data(struct iio_channel *chn, void *data);
1264 __api void * iio_channel_get_data(const struct iio_channel *chn);
1270 __api __pure enum iio_chan_type iio_channel_get_type(
1277 __api __pure enum iio_modifier iio_channel_get_modifier(
1292 __api __pure const struct iio_device * iio_buffer_get_device(
1305 __api struct iio_buffer * iio_device_create_buffer(const struct iio_device *dev,
1313 __api void iio_buffer_destroy(struct iio_buffer *buf);
1323 __api int iio_buffer_get_poll_fd(struct iio_buffer *buf);
1336 __api int iio_buffer_set_blocking_mode(struct iio_buffer *buf, bool blocking);
1345 __api ssize_t iio_buffer_refill(struct iio_buffer *buf);
1354 __api ssize_t iio_buffer_push(struct iio_buffer *buf);
1364 __api ssize_t iio_buffer_push_partial(struct iio_buffer *buf,
1390 __api void iio_buffer_cancel(struct iio_buffer *buf);
1396 __api void * iio_buffer_start(const struct iio_buffer *buf);
1414 __api void * iio_buffer_first(const struct iio_buffer *buf,
1422 __api ptrdiff_t iio_buffer_step(const struct iio_buffer *buf);
1429 __api void * iio_buffer_end(const struct iio_buffer *buf);
1443 __api ssize_t iio_buffer_foreach_sample(struct iio_buffer *buf,
1451 __api void iio_buffer_set_data(struct iio_buffer *buf, void *data);
1457 __api void * iio_buffer_get_data(const struct iio_buffer *buf);
1508 __api ssize_t iio_device_get_sample_size(const struct iio_device *dev);
1515 __api __pure long iio_channel_get_index(const struct iio_channel *chn);
1521 __api __cnst const struct iio_data_format * iio_channel_get_data_format(
1530 __api void iio_channel_convert(const struct iio_channel *chn,
1539 __api void iio_channel_convert_inverse(const struct iio_channel *chn,
1546 __api __pure unsigned int iio_device_get_debug_attrs_count(
1555 __api __pure const char * iio_device_get_debug_attr(
1571 __api __pure const char * iio_device_find_debug_attr(
1597 __api ssize_t iio_device_debug_attr_read(const struct iio_device *dev,
1610 __api int iio_device_debug_attr_read_all(struct iio_device *dev,
1635 __api ssize_t iio_device_debug_attr_write(const struct iio_device *dev,
1647 __api ssize_t iio_device_debug_attr_write_raw(const struct iio_device *dev,
1660 __api int iio_device_debug_attr_write_all(struct iio_device *dev,
1673 __api int iio_device_debug_attr_read_bool(const struct iio_device *dev,
1684 __api int iio_device_debug_attr_read_longlong(const struct iio_device *dev,
1695 __api int iio_device_debug_attr_read_double(const struct iio_device *dev,
1706 __api int iio_device_debug_attr_write_bool(const struct iio_device *dev,
1717 __api int iio_device_debug_attr_write_longlong(const struct iio_device *dev,
1728 __api int iio_device_debug_attr_write_double(const struct iio_device *dev,
1744 __api int iio_device_identify_filename(const struct iio_device *dev,
1755 __api int iio_device_reg_write(struct iio_device *dev,
1765 __api int iio_device_reg_read(struct iio_device *dev,
1775 #undef __api