struct iio_context * iio_create_xml_context_mem(const char *xml, size_t len) { #ifdef WITH_XML_BACKEND return xml_create_context_mem(xml, len); #else errno = ENOSYS; return NULL; #endif }
static struct iio_context * xml_clone(const struct iio_context *ctx) { return xml_create_context_mem(ctx->xml, strlen(ctx->xml)); }