]> sigrok.org Git - libsigrok.git/blobdiff - src/std.c
Match std_init() parameter order to the driver init() callback
[libsigrok.git] / src / std.c
index aadf8236a790a3f79c38ece2cf6ebd191166991c..8f6f3786339472dd06136ceab46368ea3a0e0764 100644 (file)
--- a/src/std.c
+++ b/src/std.c
  * It creates a new 'struct drv_context' (drvc), assigns sr_ctx to it, and
  * then 'drvc' is assigned to the 'struct sr_dev_driver' (di) that is passed.
  *
- * @param sr_ctx The libsigrok context to assign.
  * @param di The driver instance to use.
+ * @param sr_ctx The libsigrok context to assign.
  * @param[in] prefix A driver-specific prefix string used for log messages.
  *
  * @return SR_OK upon success, SR_ERR_ARG upon invalid arguments.
  */
-SR_PRIV int std_init(struct sr_context *sr_ctx, struct sr_dev_driver *di,
+SR_PRIV int std_init(struct sr_dev_driver *di, struct sr_context *sr_ctx,
                     const char *prefix)
 {
        struct drv_context *drvc;