aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib/iomgr/polling_entity.h
diff options
context:
space:
mode:
authorGravatar Yash Tibrewal <yashkt@google.com>2017-09-11 15:00:11 -0700
committerGravatar Yash Tibrewal <yashkt@google.com>2017-09-12 14:59:58 -0700
commit52778c4729ae4e59eadae3bb49728967f397eb6f (patch)
treeff7a26e01f62a729f0d97ad6481df3144ad45ae6 /src/core/lib/iomgr/polling_entity.h
parenta06e5fdfb791d65946fe5f6123a3d7dc9f264912 (diff)
Adding pointer conversions. Renaming a few variables and type names to avoid C++ compilation issues
Diffstat (limited to 'src/core/lib/iomgr/polling_entity.h')
-rw-r--r--src/core/lib/iomgr/polling_entity.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/lib/iomgr/polling_entity.h b/src/core/lib/iomgr/polling_entity.h
index 971fd88b42..940f10f152 100644
--- a/src/core/lib/iomgr/polling_entity.h
+++ b/src/core/lib/iomgr/polling_entity.h
@@ -22,6 +22,8 @@
#include "src/core/lib/iomgr/pollset.h"
#include "src/core/lib/iomgr/pollset_set.h"
+typedef enum pops_tag { POPS_NONE, POPS_POLLSET, POPS_POLLSET_SET } pops_tag;
+
/* A grpc_polling_entity is a pollset-or-pollset_set container. It allows
* functions that accept a pollset XOR a pollset_set to do so through an
* abstract interface. No ownership is taken. */
@@ -31,7 +33,7 @@ typedef struct grpc_polling_entity {
grpc_pollset *pollset;
grpc_pollset_set *pollset_set;
} pollent;
- enum pops_tag { POPS_NONE, POPS_POLLSET, POPS_POLLSET_SET } tag;
+ pops_tag tag;
} grpc_polling_entity;
grpc_polling_entity grpc_polling_entity_create_from_pollset_set(