Skip to content

Commit

Permalink
Updated readme.
Browse files Browse the repository at this point in the history
  • Loading branch information
FedeDP committed Jul 10, 2019
1 parent f31e6af commit f3b8fd6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,17 @@ Frankly speaking, it is denoted by a MODULE() macro plus a bunch of mandatory ca
MODULE("Pippo");

static void init(void) {
m_register_fd(STDIN_FILENO, 0, NULL);
/* Register STDIN fd, without autoclosing it at the end */
m_register_fd(STDIN_FILENO, false, NULL);
}

/* Should module be registered? */
static bool check(void) {
/* Should module be registered? */
return true;
}

/* Should module be started? */
static bool evaluate(void) {
/* Should module be started? */
return true;
}

Expand Down
1 change: 1 addition & 0 deletions TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@

- [ ] Rename pubsub_msg to ps_msg inside msg_t?
- [ ] Rename pubsub_msg_t to ps_msg_t?
- [ ] module_get_name/ctx to return a strdup?

### Doc
- [x] module_dump
Expand Down

0 comments on commit f3b8fd6

Please sign in to comment.