From 5b35daaf2fe6c6fbe0b15740efbffe16ff278e6c Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sat, 29 Dec 2018 16:16:57 -0800 Subject: IPC option rework (pipe/conn) to reduce code duplication. --- src/core/defs.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/core/defs.h') 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 -- cgit v1.2.3-70-g09d2