summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2024-01-01 17:12:47 -0800
committerGarrett D'Amore <garrett@damore.org>2024-01-06 19:36:02 -0800
commitc2d3239d787e78c4a87cfe8588dedc8674742910 (patch)
treed1fcbef213f878bbf8c443053f0faf3a07a27b19 /include
parentb989bedf8051b8ce3c27c4385d56239b21764700 (diff)
downloadnng-c2d3239d787e78c4a87cfe8588dedc8674742910.tar.gz
nng-c2d3239d787e78c4a87cfe8588dedc8674742910.tar.bz2
nng-c2d3239d787e78c4a87cfe8588dedc8674742910.zip
Bump version to 1.7.0 official.
Diffstat (limited to 'include')
-rw-r--r--include/nng/nng.h30
1 files changed, 18 insertions, 12 deletions
diff --git a/include/nng/nng.h b/include/nng/nng.h
index 394dd0fd..e3e4796b 100644
--- a/include/nng/nng.h
+++ b/include/nng/nng.h
@@ -60,7 +60,7 @@ extern "C" {
#define NNG_MINOR_VERSION 7
#define NNG_PATCH_VERSION 0
#define NNG_RELEASE_SUFFIX \
- "pre" // if non-empty (i.e. "pre"), this is a pre-release
+ "" // if non-empty (i.e. "pre"), this is a pre-release
// Maximum length of a socket address. This includes the terminating NUL.
// This limit is built into other implementations, so do not change it.
@@ -1414,7 +1414,7 @@ NNG_DECL void nng_closeall(void) NNG_DEPRECATED;
// This API is intentionally undocumented.
//
// Parameter settings are lost after nng_fini() is called.
-typedef int nng_init_parameter;
+typedef int nng_init_parameter;
NNG_DECL void nng_init_set_parameter(nng_init_parameter, uint64_t);
// The following list of parameters is not part of our API stability promise.
@@ -1425,7 +1425,8 @@ NNG_DECL void nng_init_set_parameter(nng_init_parameter, uint64_t);
// on a best effort basis only.
//
// NOTE: When removing a value, please leave the enumeration in place and add
-// a suffix _RETIRED ... this will preserve the binary values for binary compatibility.
+// a suffix _RETIRED ... this will preserve the binary values for binary
+// compatibility.
enum {
NNG_INIT_PARAMETER_NONE = 0, // ensure values start at 1.
@@ -1434,29 +1435,34 @@ enum {
// At least 2 threads will be created in any case.
NNG_INIT_NUM_TASK_THREADS,
- // Fix the number of threads used for expiration. Default is one thread per
- // core, capped to NNG_INIT_MAX_EXPIRE_THREADS. At least one thread will be created.
+ // Fix the number of threads used for expiration. Default is one
+ // thread per core, capped to NNG_INIT_MAX_EXPIRE_THREADS. At least
+ // one thread will be created.
NNG_INIT_NUM_EXPIRE_THREADS,
// Fix the number of poller threads (used for I/O). Support varies
// by platform (many platforms only support a single poller thread.)
NNG_INIT_NUM_POLLER_THREADS,
- // Fix the number of threads used for DNS resolution. At least one will be used.
- // Default is controlled by NNG_RESOLV_CONCURRENCY compile time variable.
+ // Fix the number of threads used for DNS resolution. At least one
+ // will be used. Default is controlled by NNG_RESOLV_CONCURRENCY
+ // compile time variable.
NNG_INIT_NUM_RESOLVER_THREADS,
// Limit the number of threads of created for tasks.
- // NNG will always create at least 2 of these in order to prevent deadlocks.
- // Zero means no limit. Default is determined by NNG_MAX_TASKQ_THREADS compile time variable.
+ // NNG will always create at least 2 of these in order to prevent
+ // deadlocks. Zero means no limit. Default is determined by
+ // NNG_MAX_TASKQ_THREADS compile time variable.
NNG_INIT_MAX_TASK_THREADS,
- // Limit the number of threads created for expiration. Zero means no limit.
- // Default is determined by the NNG_MAX_EXPIRE_THREADS compile time variable.
+ // Limit the number of threads created for expiration. Zero means no
+ // limit. Default is determined by the NNG_MAX_EXPIRE_THREADS compile
+ // time variable.
NNG_INIT_MAX_EXPIRE_THREADS,
// Limit the number of poller/IO threads created. Zero means no limit.
- // Default is determined by NNG_MAX_POLLER_THREADS compile time variable.
+ // Default is determined by NNG_MAX_POLLER_THREADS compile time
+ // variable.
NNG_INIT_MAX_POLLER_THREADS,
};