mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 23:04:20 +01:00
28cc5d1ed9
{{{ svn merge -r 19523:19895 https://svn.tokutek.com/tokudb/toku/tokudb.2499d }}} . git-svn-id: file:///svn/toku/tokudb@19902 c7de825b-a66e-492c-adef-691d508d4ae1
42 lines
982 B
C
42 lines
982 B
C
/* -*- mode: C; c-basic-offset: 4 -*- */
|
|
|
|
#ident "Copyright (c) 2007-2010 Tokutek Inc. All rights reserved."
|
|
|
|
|
|
/* The purpose of this file is to provide access to the fifo_msg,
|
|
* which is the stored representation of the brt_msg.
|
|
*
|
|
* NOTE: Accessor functions return all values in host byte order.
|
|
*/
|
|
|
|
#ifndef TOKU_FIFO_MSG_H
|
|
#define TOKU_FIFO_MSG_H
|
|
|
|
#if defined(__cplusplus) || defined(__cilkplusplus)
|
|
extern "C" {
|
|
#endif
|
|
|
|
u_int32_t fifo_msg_get_keylen(FIFO_MSG fifo_msg);
|
|
|
|
u_int32_t fifo_msg_get_vallen(FIFO_MSG fifo_msg);
|
|
|
|
XIDS fifo_msg_get_xids(FIFO_MSG fifo_msg);
|
|
|
|
void * fifo_msg_get_key(FIFO_MSG fifo_msg);
|
|
|
|
void * fifo_msg_get_val(FIFO_MSG fifo_msg);
|
|
|
|
enum brt_msg_type fifo_msg_get_type(FIFO_MSG fifo_msg);
|
|
|
|
u_int32_t fifo_msg_get_size(FIFO_MSG fifo_msg);
|
|
|
|
// Return number of bytes required for a fifo_msg created from
|
|
// the given brt_msg
|
|
u_int32_t fifo_msg_get_size_required(BRT_MSG brt_msg);
|
|
|
|
#if defined(__cplusplus) || defined(__cilkplusplus)
|
|
};
|
|
#endif
|
|
|
|
#endif
|
|
|