diff options
author | Shehjar Tikoo <shehjart@gluster.com> | 2010-09-22 03:32:14 +0000 |
---|---|---|
committer | Vijay Bellur <vijay@dev.gluster.com> | 2010-09-22 04:14:13 -0700 |
commit | 151c120908fbd8e18072a6e64a641911c307a51c (patch) | |
tree | e170d4d221dbc607777e47a3537e3e5af951e253 /libglusterfs/src/glusterfs.h | |
parent | b6121c62717c89ddc38b72ef18ba110c944cde70 (diff) |
core: Introduce string representation of GF_EVENTS
Signed-off-by: Shehjar Tikoo <shehjart@gluster.com>
Signed-off-by: Vijay Bellur <vijay@dev.gluster.com>
BUG: 1643 (Initial requests after mount ESTALE if DHT subvolumes connect after nfs startup)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1643
Diffstat (limited to 'libglusterfs/src/glusterfs.h')
-rw-r--r-- | libglusterfs/src/glusterfs.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libglusterfs/src/glusterfs.h b/libglusterfs/src/glusterfs.h index 669bbfaeb55..f484520a711 100644 --- a/libglusterfs/src/glusterfs.h +++ b/libglusterfs/src/glusterfs.h @@ -288,6 +288,9 @@ struct _glusterfs_ctx { typedef struct _glusterfs_ctx glusterfs_ctx_t; +/* If you edit this structure then, make a corresponding change in + * globals.c in the eventstring. + */ typedef enum { GF_EVENT_PARENT_UP = 1, GF_EVENT_POLLIN, @@ -300,8 +303,11 @@ typedef enum { GF_EVENT_TRANSPORT_CONNECTED, GF_EVENT_VOLFILE_MODIFIED, GF_EVENT_GRAPH_NEW, + GF_EVENT_MAXVAL, } glusterfs_event_t; +extern char * +glusterfs_strevent (glusterfs_event_t ev); #define GF_MUST_CHECK __attribute__((warn_unused_result)) @@ -312,4 +318,5 @@ glusterfs_graph_t *glusterfs_graph_construct (FILE *fp); glusterfs_graph_t *glusterfs_graph_new (); int glusterfs_graph_reconfigure (glusterfs_graph_t *oldgraph, glusterfs_graph_t *newgraph); + #endif /* _GLUSTERFS_H */ |