Skip to content

Commit ee9c3c0

Browse files
committed
Updated todo.
1 parent 13230a1 commit ee9c3c0

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

TODO.md

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@
3131

3232
- [x] Update readme (multi platform + libkqueue mention)
3333

34-
- [ ] Release 3.1.0
34+
- [ ] Release
3535

36-
## 3.2.0
36+
## 3.1.1
3737

3838
### Improvements
3939
- [ ] self_t will hold a pointer to module and to its context
@@ -43,7 +43,20 @@
4343
- [ ] insert self_t into context->modules, instead of module
4444
- [ ] this way GET_MOD etc etc are way faster (no context and modules hashmap lookup)
4545

46-
- [ ] Release 3.2.0
46+
- [ ] Release
47+
48+
## 3.2.0
49+
- [ ] Actually implement a queue for module_become/unbecome
50+
- [ ] Expose queue through a queue.h public header
51+
- [ ] Expose a list.h too? And use it for module's fds?
52+
53+
## 4.0.0 (?)
54+
- [ ] Prevent other modules from using a module's self_t (as received eg from a PubSub message)
55+
Idea: for each self_t passed as first parameter, check that its address is same as self_t stored in module (?), eg:
56+
module_register_fd(self_t **self, ...) { if (self != (*self)->module->trusted_self) { return MOD_NO_PERM; }
57+
58+
- [ ] All API should go through self_t, eg: self_t *recipient = module_ref("foo"); module_tell(self, recipient, ...);
59+
- [ ] Add a module_new_msg(.data=..., .topic=..., ) (https://github.com/mcinglis/c-style#use-structs-to-name-functions-optional-arguments)
4760

4861
## Ideas
4962

0 commit comments

Comments
 (0)