summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/xlator.h
diff options
context:
space:
mode:
authorVikas Gorur <vikas@gluster.com>2009-06-09 05:08:58 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-06-11 07:51:26 -0700
commit1a6989613914cc86a64c3eb21cfddba15ce372d9 (patch)
tree187a17f84131c7909c9fda37822fec6b3c3ee0d7 /libglusterfs/src/xlator.h
parent77d8cfeab52cd19f3b70abd9c3a2c4bbc9219bff (diff)
Added MOP log to libglusterfs/*
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
Diffstat (limited to 'libglusterfs/src/xlator.h')
-rw-r--r--libglusterfs/src/xlator.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/libglusterfs/src/xlator.h b/libglusterfs/src/xlator.h
index 2bacc0457..8e0676175 100644
--- a/libglusterfs/src/xlator.h
+++ b/libglusterfs/src/xlator.h
@@ -98,6 +98,10 @@ typedef int32_t (*mop_getspec_cbk_t) (call_frame_t *frame,
int32_t op_errno,
char *spec_data);
+typedef int32_t (*mop_log_cbk_t) (call_frame_t *frame,
+ void *cookie, xlator_t *this,
+ int32_t op_ret, int32_t op_errno);
+
typedef int32_t (*fop_checksum_cbk_t) (call_frame_t *frame,
void *cookie,
xlator_t *this,
@@ -119,6 +123,10 @@ typedef int32_t (*mop_getspec_t) (call_frame_t *frame,
const char *key,
int32_t flag);
+typedef int32_t (*mop_log_t) (call_frame_t *frame,
+ xlator_t *this,
+ const char *msg);
+
typedef int32_t (*fop_checksum_t) (call_frame_t *frame,
xlator_t *this,
loc_t *loc,
@@ -127,7 +135,9 @@ typedef int32_t (*fop_checksum_t) (call_frame_t *frame,
struct xlator_mops {
mop_stats_t stats;
mop_getspec_t getspec;
+ mop_log_t log;
+ mop_log_cbk_t log_cbk;
mop_stats_cbk_t stats_cbk;
mop_getspec_cbk_t getspec_cbk;
};