#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
-#include "libsigrok.h"
+#include <libsigrok/libsigrok.h>
#include "libsigrok-internal.h"
/** @cond PRIVATE */
*
* @param imod The input module to use. Must not be NULL.
* @param options GHashTable consisting of keys corresponding with
- * the module options \c id field. The values should be GVariant
+ * the module options @c id field. The values should be GVariant
* pointers with sunk references, of the same GVariantType as the option's
* default value.
*
}
if (stat(filename, &st) < 0) {
- sr_err("%s", strerror(errno));
+ sr_err("%s", g_strerror(errno));
return SR_ERR_ARG;
}
GINT_TO_POINTER(st.st_size));
} else if (mitem == SR_INPUT_META_HEADER) {
if ((fd = open(filename, O_RDONLY)) < 0) {
- sr_err("%s", strerror(errno));
+ sr_err("%s", g_strerror(errno));
return SR_ERR;
}
size = read(fd, header_buf->str, 128);
close(fd);
if (size <= 0) {
g_string_free(header_buf, TRUE);
- sr_err("%s", strerror(errno));
+ sr_err("%s", g_strerror(errno));
return SR_ERR;
}
g_hash_table_insert(meta, GINT_TO_POINTER(mitem), header_buf);
g_free((gpointer)in);
}
-
/** @} */