]> sigrok.org Git - libsigrok.git/blobdiff - include/libsigrok/proto.h
python: Provide sensible __str__ and __repr__ functions for enum values.
[libsigrok.git] / include / libsigrok / proto.h
index 3a8e346f087c6c8f86b290c9d30139cbefa9d462..ea9d477946fd7ae74a963f77e1dc89dd3c906a0e 100644 (file)
@@ -20,6 +20,8 @@
 #ifndef LIBSIGROK_PROTO_H
 #define LIBSIGROK_PROTO_H
 
+#include <unistd.h>
+
 /**
  * @file
  *
@@ -83,7 +85,7 @@ SR_API int sr_dev_inst_channel_add(struct sr_dev_inst *sdi, int index, int type,
 SR_API struct sr_dev_driver **sr_driver_list(const struct sr_context *ctx);
 SR_API int sr_driver_init(struct sr_context *ctx,
                struct sr_dev_driver *driver);
-SR_API GArray *sr_driver_scan_options(const struct sr_dev_driver *driver);
+SR_API GArray *sr_driver_scan_options_list(const struct sr_dev_driver *driver);
 SR_API GSList *sr_driver_scan(struct sr_dev_driver *driver, GSList *options);
 SR_API int sr_config_get(const struct sr_dev_driver *driver,
                const struct sr_dev_inst *sdi,