Skip to content

Commit

Permalink
small doc fix. Updated todo
Browse files Browse the repository at this point in the history
  • Loading branch information
FedeDP committed Mar 24, 2018
1 parent be0503b commit 9005f6a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 deletions.
16 changes: 0 additions & 16 deletions TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,11 @@

### Generic

- [x] Use self_t as opaque handler to avoid void pointers and update various internal module.c macros
- [x] find a better alternative to $ctx_$name_pre_start for each module pre_start function
- [x] rename get_fd function (as same function should be used to eg: set module's initial subscriptions and initial state)
- [x] Let users implement "non-pollable" modules, ie: modules that are not bound to a FD (but only receives pubsub message) -> ie: set RUNNING state anyway if certain FD is passed
- [x] Update doc
- [x] msg_t all const
- [x] m_tell and m_publish -> check for NULL message
- [x] m_tell check for NULL recipient
- [ ] review hashmap code
- [ ] split in modules.h and module.h? Split even module{s}_easy?

### Logger

- [x] modules_set_logger() function to set a logger?
- [x] Logger will be called in module_log/m_log
- [x] pass module's userdata to logger

### Samples

- [x] Improve easy example
- [x] Improve sharedSrd example
- [ ] Improve multictx example

### Finally
Expand Down
2 changes: 1 addition & 1 deletion docs/src/modules.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ It abstracts all of libmodule internals mechanisms to provide an easy-to-use and

.. c:macro:: modules_set_logger(logger)
Set a logger for a context. By default, module's log prints to stdout.
Set a logger. By default, module's log prints to stdout.

:param logger: logger function.
:type logger: :c:type:`log_cb`
Expand Down

0 comments on commit 9005f6a

Please sign in to comment.