Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: libserialport libxml2
Diff: iio-private.h
- Revision:
- 3:d147beabba0e
- Parent:
- 0:df031b60ca29
- Child:
- 4:ad69b39bf124
diff -r 9eb0a9a1f958 -r d147beabba0e iio-private.h --- a/iio-private.h Tue Sep 20 15:34:31 2016 +0000 +++ b/iio-private.h Mon Jan 30 13:00:39 2017 +0000 @@ -22,14 +22,15 @@ /* Include public interface */ #include "iio.h" +#include "iio-config.h" + #include <stdbool.h> #ifdef _MSC_BUILD -#define snprintf sprintf_s #define inline __inline -#endif -#ifdef _WIN32 -#define strerror_r(err, buf, len) strerror_s(buf, len, err) +#define iio_snprintf sprintf_s +#else +#define iio_snprintf snprintf #endif #ifdef _WIN32 @@ -44,6 +45,10 @@ # define __api #endif +#ifdef WITH_MATLAB_BINDINGS_API +#include "bindings/matlab/iio-wrapper.h" +#endif + #define ARRAY_SIZE(x) (sizeof(x) ? sizeof(x) / sizeof((x)[0]) : 0) #define BIT(x) (1 << (x)) #define BIT_MASK(bit) BIT((bit) % 32) @@ -147,6 +152,10 @@ unsigned int nb_devices; char *xml; + + char **attrs; + char **values; + unsigned int nb_attrs; }; struct iio_channel { @@ -259,6 +268,9 @@ char *iio_strdup(const char *str); +int iio_context_add_attr(struct iio_context *ctx, + const char *key, const char *value); + #undef __api #endif /* __IIO_PRIVATE_H__ */