aboutsummaryrefslogtreecommitdiff
path: root/src/core/transport.h
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2018-04-04 11:07:56 -0700
committerGarrett D'Amore <garrett@damore.org>2018-04-04 11:07:56 -0700
commit505a9bce029e51540739c853a6c9eef0ecfb2e90 (patch)
treed907679b6ab99bcb5da919db3d005d4976590c21 /src/core/transport.h
parent0aa1de1316b46bb4af23fdf26759bca08008eaf5 (diff)
downloadnng-505a9bce029e51540739c853a6c9eef0ecfb2e90.tar.gz
nng-505a9bce029e51540739c853a6c9eef0ecfb2e90.tar.bz2
nng-505a9bce029e51540739c853a6c9eef0ecfb2e90.zip
fixes #329 type checking not done for setopt
Diffstat (limited to 'src/core/transport.h')
-rw-r--r--src/core/transport.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/transport.h b/src/core/transport.h
index 7085126f..b1fecaa2 100644
--- a/src/core/transport.h
+++ b/src/core/transport.h
@@ -65,7 +65,7 @@ struct nni_tran_ep_option {
// performed, but the option should be sanity tested for presence
// and size. (This permits the core to validate that an option
// is reasonable and be set even before endpoints are created.)
- int (*eo_setopt)(void *, const void *, size_t);
+ int (*eo_setopt)(void *, const void *, size_t, int);
};
// Endpoint operations are called by the socket in a protocol-independent
@@ -172,7 +172,7 @@ struct nni_tran_pipe {
// These APIs are used by the framework internally, and not for use by
// transport implementations.
extern nni_tran *nni_tran_find(nni_url *);
-extern int nni_tran_chkopt(const char *, const void *, size_t);
+extern int nni_tran_chkopt(const char *, const void *, size_t, int);
extern int nni_tran_sys_init(void);
extern void nni_tran_sys_fini(void);
extern int nni_tran_register(const nni_tran *);