diff options
| author | Garrett D'Amore <garrett@damore.org> | 2018-12-29 16:16:57 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2018-12-29 16:16:57 -0800 |
| commit | 5b35daaf2fe6c6fbe0b15740efbffe16ff278e6c (patch) | |
| tree | 24c383103cc3ff3e98e2e8179d0633e9b2f6010a /src/core/defs.h | |
| parent | d3bd35ab49ad74528fd9e34cce9016d74dd91943 (diff) | |
| download | nng-5b35daaf2fe6c6fbe0b15740efbffe16ff278e6c.tar.gz nng-5b35daaf2fe6c6fbe0b15740efbffe16ff278e6c.tar.bz2 nng-5b35daaf2fe6c6fbe0b15740efbffe16ff278e6c.zip | |
IPC option rework (pipe/conn) to reduce code duplication.
Diffstat (limited to 'src/core/defs.h')
| -rw-r--r-- | src/core/defs.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/defs.h b/src/core/defs.h index 5c06cf53..32d6782a 100644 --- a/src/core/defs.h +++ b/src/core/defs.h @@ -139,7 +139,7 @@ typedef struct { // Types. These are used to provide more structured access to options // (and maybe later statistics). For now these are internal only. -typedef enum nni_opt_type { +typedef enum { NNI_TYPE_OPAQUE, NNI_TYPE_BOOL, NNI_TYPE_INT32, @@ -151,6 +151,8 @@ typedef enum nni_opt_type { NNI_TYPE_STRING, NNI_TYPE_SOCKADDR, NNI_TYPE_POINTER, -} nni_opt_type; +} nni_type; + +typedef nni_type nni_opt_type; #endif // CORE_DEFS_H |
