Skip to content

Commit

Permalink
Don't export iio_device_get_sample_size_mask()
Browse files Browse the repository at this point in the history
This function is not used by IIOD anymore, so make it a private symbol.

Signed-off-by: Paul Cercueil <[email protected]>
  • Loading branch information
pcercuei committed May 19, 2021
1 parent 3c36a0c commit 4c9ee95
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions iio-private.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,7 @@

/* Include public interface */
#include "iio.h"

#ifdef _WIN32
# ifdef LIBIIO_EXPORTS
# define __api __declspec(dllexport)
# else
# define __api __declspec(dllimport)
# endif
#elif __GNUC__ >= 4
# define __api __attribute__((visibility ("default")))
#else
# define __api
#endif

#include "iio-backend.h"

#include "iio-config.h"

#include <stdbool.h>
Expand Down Expand Up @@ -272,8 +258,7 @@ void dnssd_context_scan_free(struct iio_scan_backend_context *ctx);
int dnssd_context_scan(struct iio_scan_backend_context *ctx,
struct iio_scan_result *scan_result);

/* This function is not part of the API, but is used by the IIO daemon */
__api ssize_t iio_device_get_sample_size_mask(const struct iio_device *dev,
ssize_t iio_device_get_sample_size_mask(const struct iio_device *dev,
const uint32_t *mask, size_t words);

void iio_channel_init_finalize(struct iio_channel *chn);
Expand All @@ -295,6 +280,4 @@ int add_iio_dev_attr(struct iio_dev_attrs *attrs, const char *attr,

ssize_t __iio_printf iio_snprintf(char *buf, size_t len, const char *fmt, ...);

#undef __api

#endif /* __IIO_PRIVATE_H__ */

0 comments on commit 4c9ee95

Please sign in to comment.