aboutsummaryrefslogtreecommitdiff
path: root/src/core/platform.h
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2018-12-29 16:16:57 -0800
committerGarrett D'Amore <garrett@damore.org>2018-12-29 16:16:57 -0800
commit5b35daaf2fe6c6fbe0b15740efbffe16ff278e6c (patch)
tree24c383103cc3ff3e98e2e8179d0633e9b2f6010a /src/core/platform.h
parentd3bd35ab49ad74528fd9e34cce9016d74dd91943 (diff)
downloadnng-5b35daaf2fe6c6fbe0b15740efbffe16ff278e6c.tar.gz
nng-5b35daaf2fe6c6fbe0b15740efbffe16ff278e6c.tar.bz2
nng-5b35daaf2fe6c6fbe0b15740efbffe16ff278e6c.zip
IPC option rework (pipe/conn) to reduce code duplication.
Diffstat (limited to 'src/core/platform.h')
-rw-r--r--src/core/platform.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/core/platform.h b/src/core/platform.h
index 2b7eb9f1..a512c39f 100644
--- a/src/core/platform.h
+++ b/src/core/platform.h
@@ -379,16 +379,15 @@ extern int nni_ipc_conn_get_peer_zoneid(nni_ipc_conn *, uint64_t *);
// nni_ipc_conn_setopt is like setsockopt, but uses string names. These
// are the same names from the IPC transport, generally. There are no
// options that are generally settable on an IPC connection.
-// NNG_OPT_REMADDR, NNG_OPT_LOCADDR, NNG_OPT_IPC_PERMISSIONS,
-// NNG_OPT_
extern int nni_ipc_conn_setopt(
- nni_ipc_conn *, const char *, const void *, size_t);
+ nni_ipc_conn *, const char *, const void *, size_t, nni_opt_type);
// nni_ipc_conn_getopt is like getsockopt, but uses string names.
// We support NNG_OPT_REMADDR and NNG_OPT_LOCADDR (with argument type
// nng_sockaddr), and on some platforms NNG_OPT_IPC_PEER_[UID,GID,ZONEID]
// (with type uint64_t.)
-extern int nni_ipc_conn_getopt(nni_ipc_conn *, const char *, void *, size_t *);
+extern int nni_ipc_conn_getopt(
+ nni_ipc_conn *, const char *, void *, size_t *, nni_opt_type);
// nni_ipc_dialer_init creates a new dialer object.
extern int nni_ipc_dialer_init(nni_ipc_dialer **);