diff options
| author | Garrett D'Amore <garrett@damore.org> | 2024-11-03 10:12:28 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2024-11-03 10:45:51 -0800 |
| commit | 49076237cc0b82e7007535e789f3fadc19a18c45 (patch) | |
| tree | 6336768366f8d8bca987f8742ddcb1df73fd3c98 /src/core/options.h | |
| parent | 11485d2723f22dc60e4cefea3ffb3fd8a378d931 (diff) | |
| download | nng-49076237cc0b82e7007535e789f3fadc19a18c45.tar.gz nng-49076237cc0b82e7007535e789f3fadc19a18c45.tar.bz2 nng-49076237cc0b82e7007535e789f3fadc19a18c45.zip | |
Remove NNI_TYPE_OPAQUE altogether.
This also fixes a couple of minor bugs -- changing the socket name
could be incorrect as the termination was not applied properly,
and the ZeroTier code got a change -- note that it is only possible
in this revised version to pass a single moon ID for ZT orbit.
The ZT code is a bit stale, and untested anyway.
Diffstat (limited to 'src/core/options.h')
| -rw-r--r-- | src/core/options.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/options.h b/src/core/options.h index 67481d9f..89006630 100644 --- a/src/core/options.h +++ b/src/core/options.h @@ -31,13 +31,13 @@ extern int nni_copyin_bool(bool *, const void *, size_t, nni_type); extern int nni_copyin_int(int *, const void *, size_t, int, int, nni_type); extern int nni_copyin_size( size_t *, const void *, size_t, size_t, size_t, nni_type); -extern int nni_copyin_str(char *, const void *, size_t, size_t, nni_type); +extern int nni_copyin_str(char *, const void *, size_t, nni_type); extern int nni_copyin_ptr(void **, const void *, size_t, nni_type); extern int nni_copyin_u64(uint64_t *, const void *, size_t, nni_type); extern int nni_copyin_sockaddr(nng_sockaddr *, const void *, nni_type); // nni_copyout_xxx copies out a type of the named value. It assumes that -// the type is aligned and the size correct, unless NNI_TYPE_OPAQUE is passed. +// the type is aligned and the size correct. extern int nni_copyout(const void *, size_t, void *, size_t *); extern int nni_copyout_bool(bool, void *, size_t *, nni_type); extern int nni_copyout_int(int, void *, size_t *, nni_type); |
