1 | /* Copyright (c) 2002, 2004-2006 MySQL AB |
2 | Use is subject to license terms |
3 | |
4 | This program is free software; you can redistribute it and/or modify |
5 | it under the terms of the GNU General Public License as published by |
6 | the Free Software Foundation; version 2 of the License. |
7 | |
8 | This program is distributed in the hope that it will be useful, |
9 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
10 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | GNU General Public License for more details. |
12 | |
13 | You should have received a copy of the GNU General Public License |
14 | along with this program; if not, write to the Free Software |
15 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ |
16 | |
17 | /* Written by Ramil Kalimullin, who has a shared copyright to this code */ |
18 | |
19 | #ifndef _rt_key_h |
20 | #define _rt_key_h |
21 | |
22 | #ifdef HAVE_RTREE_KEYS |
23 | |
24 | int rtree_add_key(MI_INFO *info, MI_KEYDEF *keyinfo, uchar *key, |
25 | uint key_length, uchar *page_buf, my_off_t *new_page); |
26 | int rtree_delete_key(MI_INFO *info, uchar *page, uchar *key, |
27 | uint key_length, uint nod_flag); |
28 | int rtree_set_key_mbr(MI_INFO *info, MI_KEYDEF *keyinfo, uchar *key, |
29 | uint key_length, my_off_t child_page); |
30 | |
31 | #endif /*HAVE_RTREE_KEYS*/ |
32 | #endif /* _rt_key_h */ |
33 | |