]> git.ozlabs.org Git - ccan/blobdiff - ccan/io/_info
ccan/io: keep more io_plan details internal.
[ccan] / ccan / io / _info
index 6dd633abdfc4db651112c13c443f71262d44c91e..42b71d9e6e9f18a48b278ddb5beed8a7ec8c4396 100644 (file)
@@ -51,7 +51,7 @@
  *
  *     // No room?  Wait for writer
  *     if (b->end == sizeof(b->buf))
- *             return io_wait(c, b, IO_IN, read_in, b);
+ *             return io_wait(c, b, read_in, b);
  *
  *     return io_read_partial(c, b->buf + b->end, sizeof(b->buf) - b->end,
  *                            &b->rlen, read_in, b);
@@ -71,7 +71,7 @@
  *     if (b->end == b->start) {
  *             if (b->finished)
  *                     return io_close(c);
- *             return io_wait(c, b, IO_OUT, write_out, b);
+ *             return io_wait(c, b, write_out, b);
  *     }
  *
  *     return io_write_partial(c, b->buf + b->start, b->end - b->start,
  *     io_set_finish(reader, finish, &from);
  *     io_new_conn(NULL, STDOUT_FILENO, write_out, &from);
  *
- *     io_loop();
+ *     io_loop(NULL, NULL);
  *     wait(&status);
  *
  *     return WIFEXITED(status) ? WEXITSTATUS(status) : 2;
@@ -133,7 +133,11 @@ int main(int argc, char *argv[])
                return 1;
 
        if (strcmp(argv[1], "depends") == 0) {
+               printf("ccan/container_of\n");
+               printf("ccan/list\n");
                printf("ccan/tal\n");
+               printf("ccan/time\n");
+               printf("ccan/timer\n");
                printf("ccan/typesafe_cb\n");
                return 0;
        }