aboutsummaryrefslogtreecommitdiff
path: root/src/nng.c
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2024-11-24 08:53:12 -0800
committerGarrett D'Amore <garrett@damore.org>2024-11-24 08:58:30 -0800
commitcc3b5fe459d277ee46277bc26301249f57855470 (patch)
tree6a8b55a5a3b5cc4328f605965950446fb46695fa /src/nng.c
parent895ea654581ef9928e554366fbd93f613a049017 (diff)
downloadnng-cc3b5fe459d277ee46277bc26301249f57855470.tar.gz
nng-cc3b5fe459d277ee46277bc26301249f57855470.tar.bz2
nng-cc3b5fe459d277ee46277bc26301249f57855470.zip
socket: remove unused nng_socket_get_ptr and nng_socket_set_ptr.
We will be removing these pointer based functions more generally as we we have type-specific accessors instead. We also removed the context versions of these functions, which were not previously documented.
Diffstat (limited to 'src/nng.c')
-rw-r--r--src/nng.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/nng.c b/src/nng.c
index 2bc9986c..afd785f6 100644
--- a/src/nng.c
+++ b/src/nng.c
@@ -442,12 +442,6 @@ nng_ctx_get_string(nng_ctx id, const char *n, char **v)
}
int
-nng_ctx_get_ptr(nng_ctx id, const char *n, void **v)
-{
- return (ctx_get(id, n, v, NULL, NNI_TYPE_POINTER));
-}
-
-int
nng_ctx_get_ms(nng_ctx id, const char *n, nng_duration *v)
{
return (ctx_get(id, n, v, NULL, NNI_TYPE_DURATION));
@@ -498,12 +492,6 @@ nng_ctx_set_ms(nng_ctx id, const char *n, nng_duration v)
}
int
-nng_ctx_set_ptr(nng_ctx id, const char *n, void *v)
-{
- return (ctx_set(id, n, &v, sizeof(v), NNI_TYPE_POINTER));
-}
-
-int
nng_ctx_set_string(nng_ctx id, const char *n, const char *v)
{
return (
@@ -1146,12 +1134,6 @@ nng_socket_set_ms(nng_socket id, const char *n, nng_duration v)
}
int
-nng_socket_set_ptr(nng_socket id, const char *n, void *v)
-{
- return (socket_set(id, n, &v, sizeof(v), NNI_TYPE_POINTER));
-}
-
-int
nng_socket_set_string(nng_socket id, const char *n, const char *v)
{
return (socket_set(
@@ -1203,12 +1185,6 @@ nng_socket_get_string(nng_socket id, const char *n, char **v)
}
int
-nng_socket_get_ptr(nng_socket id, const char *n, void **v)
-{
- return (socket_get(id, n, v, NULL, NNI_TYPE_POINTER));
-}
-
-int
nng_socket_get_ms(nng_socket id, const char *n, nng_duration *v)
{
return (socket_get(id, n, v, NULL, NNI_TYPE_DURATION));