diff options
author | shishir gowda <sgowda@redhat.com> | 2012-06-22 13:28:31 +0530 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2012-08-01 20:57:30 -0700 |
commit | 31e81065edc26378eabdd4785f5dd689719cd126 (patch) | |
tree | d2030cb65e91b98bf3aec6a8ecb97ce7e8a71319 /libglusterfs/src/glusterfs.h | |
parent | 84d0f889eab947b58a0f6e8d0eda5ae84c15a6c7 (diff) |
cluster/dht: Remove dht dependency on glusterfsd-mgmt
glusterfs_ctx->notify can be used by any xlator to talk to
glusterfsd-mgmt.
Note- This is for any rpc communication initiated by the xlator,
and not from glusterd.
Change-Id: Ic0e4af106fe1e98d797ca621facda8839b87598a
BUG: 835757
Signed-off-by: shishir gowda <sgowda@redhat.com>
Reviewed-on: http://review.gluster.com/3610
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Jeff Darcy <jdarcy@redhat.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'libglusterfs/src/glusterfs.h')
-rw-r--r-- | libglusterfs/src/glusterfs.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libglusterfs/src/glusterfs.h b/libglusterfs/src/glusterfs.h index cdfb64dea84..98c901b9eea 100644 --- a/libglusterfs/src/glusterfs.h +++ b/libglusterfs/src/glusterfs.h @@ -334,6 +334,8 @@ struct _glusterfs_graph { typedef struct _glusterfs_graph glusterfs_graph_t; +typedef int32_t (*glusterfsd_mgmt_event_notify_fn_t) (int32_t event, void *data, + ...); struct _glusterfs_ctx { cmd_args_t cmd_args; char *process_uuid; @@ -373,6 +375,8 @@ struct _glusterfs_ctx { int mem_accounting; /* if value is other than 0, it will be set */ + glusterfsd_mgmt_event_notify_fn_t notify; /* Used for xlators to make + call to fsd-mgmt */ }; typedef struct _glusterfs_ctx glusterfs_ctx_t; |