]> sigrok.org Git - libsigrok.git/blobdiff - backend.c
Bump package version to 0.2.1, libtool version to 1:1:0.
[libsigrok.git] / backend.c
index eeaea2451c9ca8b15ddb5c415b361c841bfa4ab3..ca1460f8e29e1ac0a7878c2753e4184097020206 100644 (file)
--- a/backend.c
+++ b/backend.c
@@ -1,5 +1,5 @@
 /*
- * This file is part of the sigrok project.
+ * This file is part of the libsigrok project.
  *
  * Copyright (C) 2010-2012 Bert Vermeulen <bert@biot.com>
  * Copyright (C) 2012 Peter Stuge <peter@stuge.se>
@@ -287,8 +287,8 @@ static int sanity_check_all_output_modules(void)
                }
 
                /* All modules must provide a data or recv API callback. */
-               if (!outputs[i]->data && !outputs[i]->recv) {
-                       sr_err("No data/recv in module %d ('%s').", i, d);
+               if (!outputs[i]->data && !outputs[i]->receive) {
+                       sr_err("No data/receive in module %d ('%s').", i, d);
                        errors++;
                }
 
@@ -319,6 +319,8 @@ static int sanity_check_all_output_modules(void)
  *         the 'ctx' pointer is undefined and should not be used. Upon success,
  *         the context will be free'd by sr_exit() as part of the libsigrok
  *         shutdown.
+ *
+ * @since 0.1.0 (but the API changed in 0.2.0)
  */
 SR_API int sr_init(struct sr_context **ctx)
 {
@@ -378,6 +380,8 @@ done:
  * @param ctx Pointer to a libsigrok context struct. Must not be NULL.
  *
  * @return SR_OK upon success, a (negative) error code otherwise.
+ *
+ * @since 0.1.0 (but the API changed in 0.2.0)
  */
 SR_API int sr_exit(struct sr_context *ctx)
 {