diff options
| author | Garrett D'Amore <garrett@damore.org> | 2017-06-21 14:59:11 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2017-06-21 14:59:11 -0700 |
| commit | 815926bb8a8c206ce64be33de5c24be6ddcbe6f7 (patch) | |
| tree | adddb553af838b0297191b2741a21d4959e2cd5b /src/nng.c | |
| parent | 763b8deee1fd38566b85d4745a83adae245d9b26 (diff) | |
| download | nng-815926bb8a8c206ce64be33de5c24be6ddcbe6f7.tar.gz nng-815926bb8a8c206ce64be33de5c24be6ddcbe6f7.tar.bz2 nng-815926bb8a8c206ce64be33de5c24be6ddcbe6f7.zip | |
Expose a library finalizer suitable for atexit().
Diffstat (limited to 'src/nng.c')
| -rw-r--r-- | src/nng.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -37,6 +37,13 @@ nng_open(nng_socket *sidp, uint16_t proto) } +void +nng_fini(void) +{ + nni_fini(); +} + + int nng_shutdown(nng_socket sid) { |
