mariadb/newbrt/brt_msg.c
Barry Perlman c9085f1753 [t:3193] Closes #3193 Delete obsolete fifo_msg code.
git-svn-id: file:///svn/toku/tokudb@29573 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:38 -04:00

47 lines
868 B
C

/* -*- mode: C; c-basic-offset: 4 -*- */
#ident "$Id$"
#ident "Copyright (c) 2007-2010 Tokutek Inc. All rights reserved."
#include <toku_portability.h>
#include "brttypes.h"
#include "xids.h"
#include "brt_msg.h"
u_int32_t
brt_msg_get_keylen(BRT_MSG brt_msg) {
u_int32_t rval = brt_msg->u.id.key->size;
return rval;
}
u_int32_t
brt_msg_get_vallen(BRT_MSG brt_msg) {
u_int32_t rval = brt_msg->u.id.val->size;
return rval;
}
XIDS
brt_msg_get_xids(BRT_MSG brt_msg) {
XIDS rval = brt_msg->xids;
return rval;
}
void *
brt_msg_get_key(BRT_MSG brt_msg) {
void * rval = brt_msg->u.id.key->data;
return rval;
}
void *
brt_msg_get_val(BRT_MSG brt_msg) {
void * rval = brt_msg->u.id.val->data;
return rval;
}
enum brt_msg_type
brt_msg_get_type(BRT_MSG brt_msg) {
enum brt_msg_type rval = brt_msg->type;
return rval;
}