You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123 lines
4.7 KiB

  1. /* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
  2. // vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4:
  3. /* The purpose of this file is to provide access to the ft_msg,
  4. * which is the ephemeral version of the fifo_msg.
  5. */
  6. #ifndef FT_MSG_H
  7. #define FT_MSG_H
  8. #ident "$Id$"
  9. /*
  10. COPYING CONDITIONS NOTICE:
  11. This program is free software; you can redistribute it and/or modify
  12. it under the terms of version 2 of the GNU General Public License as
  13. published by the Free Software Foundation, and provided that the
  14. following conditions are met:
  15. * Redistributions of source code must retain this COPYING
  16. CONDITIONS NOTICE, the COPYRIGHT NOTICE (below), the
  17. DISCLAIMER (below), the UNIVERSITY PATENT NOTICE (below), the
  18. PATENT MARKING NOTICE (below), and the PATENT RIGHTS
  19. GRANT (below).
  20. * Redistributions in binary form must reproduce this COPYING
  21. CONDITIONS NOTICE, the COPYRIGHT NOTICE (below), the
  22. DISCLAIMER (below), the UNIVERSITY PATENT NOTICE (below), the
  23. PATENT MARKING NOTICE (below), and the PATENT RIGHTS
  24. GRANT (below) in the documentation and/or other materials
  25. provided with the distribution.
  26. You should have received a copy of the GNU General Public License
  27. along with this program; if not, write to the Free Software
  28. Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  29. 02110-1301, USA.
  30. COPYRIGHT NOTICE:
  31. TokuDB, Tokutek Fractal Tree Indexing Library.
  32. Copyright (C) 2007-2013 Tokutek, Inc.
  33. DISCLAIMER:
  34. This program is distributed in the hope that it will be useful, but
  35. WITHOUT ANY WARRANTY; without even the implied warranty of
  36. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  37. General Public License for more details.
  38. UNIVERSITY PATENT NOTICE:
  39. The technology is licensed by the Massachusetts Institute of
  40. Technology, Rutgers State University of New Jersey, and the Research
  41. Foundation of State University of New York at Stony Brook under
  42. United States of America Serial No. 11/760379 and to the patents
  43. and/or patent applications resulting from it.
  44. PATENT MARKING NOTICE:
  45. This software is covered by US Patent No. 8,185,551.
  46. PATENT RIGHTS GRANT:
  47. "THIS IMPLEMENTATION" means the copyrightable works distributed by
  48. Tokutek as part of the Fractal Tree project.
  49. "PATENT CLAIMS" means the claims of patents that are owned or
  50. licensable by Tokutek, both currently or in the future; and that in
  51. the absence of this license would be infringed by THIS
  52. IMPLEMENTATION or by using or running THIS IMPLEMENTATION.
  53. "PATENT CHALLENGE" shall mean a challenge to the validity,
  54. patentability, enforceability and/or non-infringement of any of the
  55. PATENT CLAIMS or otherwise opposing any of the PATENT CLAIMS.
  56. Tokutek hereby grants to you, for the term and geographical scope of
  57. the PATENT CLAIMS, a non-exclusive, no-charge, royalty-free,
  58. irrevocable (except as stated in this section) patent license to
  59. make, have made, use, offer to sell, sell, import, transfer, and
  60. otherwise run, modify, and propagate the contents of THIS
  61. IMPLEMENTATION, where such license applies only to the PATENT
  62. CLAIMS. This grant does not include claims that would be infringed
  63. only as a consequence of further modifications of THIS
  64. IMPLEMENTATION. If you or your agent or licensee institute or order
  65. or agree to the institution of patent litigation against any entity
  66. (including a cross-claim or counterclaim in a lawsuit) alleging that
  67. THIS IMPLEMENTATION constitutes direct or contributory patent
  68. infringement, or inducement of patent infringement, then any rights
  69. granted to you under this License shall terminate as of the date
  70. such litigation is filed. If you or your agent or exclusive
  71. licensee institute or order or agree to the institution of a PATENT
  72. CHALLENGE, then Tokutek may terminate any rights granted to you
  73. under this License.
  74. */
  75. #ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved."
  76. #ident "The technology is licensed by the Massachusetts Institute of Technology, Rutgers State University of New Jersey, and the Research Foundation of State University of New York at Stony Brook under United States of America Serial No. 11/760379 and to the patents and/or patent applications resulting from it."
  77. uint32_t ft_msg_get_keylen(FT_MSG ft_msg);
  78. uint32_t ft_msg_get_vallen(FT_MSG ft_msg);
  79. XIDS ft_msg_get_xids(FT_MSG ft_msg);
  80. void * ft_msg_get_key(FT_MSG ft_msg);
  81. void * ft_msg_get_val(FT_MSG ft_msg);
  82. enum ft_msg_type ft_msg_get_type(FT_MSG ft_msg);
  83. void ft_msg_from_fifo_msg(FT_MSG ft_msg, FIFO_MSG fifo_msg);
  84. #if 0
  85. void ft_msg_from_dbts(FT_MSG ft_msg, DBT *key, DBT *val, XIDS xids, enum ft_msg_type type);
  86. #endif
  87. #endif // FT_MSG_H