summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/globals.c
diff options
context:
space:
mode:
Diffstat (limited to 'libglusterfs/src/globals.c')
-rw-r--r--libglusterfs/src/globals.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/libglusterfs/src/globals.c b/libglusterfs/src/globals.c
index e845b3dcb66..fcb2f9f64a1 100644
--- a/libglusterfs/src/globals.c
+++ b/libglusterfs/src/globals.c
@@ -334,3 +334,26 @@ glusterfs_globals_init ()
out:
return ret;
}
+
+
+char eventstring[GF_EVENT_MAXVAL][64] = {
+ "Invalid event",
+ "Parent Up",
+ "Poll In",
+ "Poll Out",
+ "Poll Err",
+ "Child Up",
+ "Child Down",
+ "Child Connecting",
+ "Transport Cleanup",
+ "Transport Connected",
+ "Volfile Modified",
+};
+
+/* Copy the string ptr contents if needed for yourself */
+char *
+glusterfs_strevent (glusterfs_event_t ev)
+{
+ return eventstring[ev];
+}
+