diff options
| author | Garrett D'Amore <garrett@damore.org> | 2017-01-16 22:22:07 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2017-01-16 22:22:07 -0800 |
| commit | 4e46e666e47e277316cc680c833356045932bb5f (patch) | |
| tree | d6888f69674a93a3c0a82baafc268773c7bb2976 /src/core/event.h | |
| parent | 50e1484af0d443b46aa04fd4a8096b157dc160aa (diff) | |
| download | nng-4e46e666e47e277316cc680c833356045932bb5f.tar.gz nng-4e46e666e47e277316cc680c833356045932bb5f.tar.bz2 nng-4e46e666e47e277316cc680c833356045932bb5f.zip | |
External event API for send/recv implemented.
This was the main blocker, I think, for the nanomsg legacy compat
shim. Now that we have this, it should be relatively straight-forward
to implement the legacy nanomsg API, including the SENDFD, RECVFD thing.
Diffstat (limited to 'src/core/event.h')
| -rw-r--r-- | src/core/event.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/event.h b/src/core/event.h index 8b160a89..74d6fddb 100644 --- a/src/core/event.h +++ b/src/core/event.h @@ -37,5 +37,7 @@ extern int nni_ev_init(nni_event *, int, nni_sock *); extern void nni_ev_fini(nni_event *); extern void nni_ev_submit(nni_event *); // call holding sock lock extern void nni_ev_wait(nni_event *); // call holding sock lock +extern nni_notify *nni_add_notify(nni_sock *, int, nng_notify_func, void *); +extern void nni_rem_notify(nni_sock *, nni_notify *); #endif // CORE_EVENT_H |
