aboutsummaryrefslogtreecommitdiffstats
path: root/lib/includes/hicn/face.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/includes/hicn/face.h')
-rw-r--r--lib/includes/hicn/face.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/includes/hicn/face.h b/lib/includes/hicn/face.h
index 45a1b97da..0d116b64b 100644
--- a/lib/includes/hicn/face.h
+++ b/lib/includes/hicn/face.h
@@ -138,6 +138,13 @@ foreach_face_type
#undef _
} face_type_t;
+typedef enum {
+ FACE_PROTOCOL_HICN,
+ FACE_PROTOCOL_UDP,
+ FACE_PROTOCOL_TCP,
+ FACE_PROTOCOL_UNKNOWN,
+} face_protocol_t;
+
#define face_type_is_valid(face_type) \
(((face_type) >= FACE_TYPE_UNDEFINED) && (face_type < FACE_TYPE_N))
#define face_type_is_defined(face_type) \
@@ -209,5 +216,7 @@ face_snprintf(char * s, size_t size, const face_t * face);
policy_tags_t face_get_tags(const face_t * face);
int face_set_tags(face_t * face, policy_tags_t tags);
+face_protocol_t get_protocol(face_type_t face_type);
+
#endif /* HICN_FACE_H */