summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/myisammrg.h12
-rw-r--r--[-rwxr-xr-x]include/mysql_version.h.in0
-rw-r--r--include/queues.h3
3 files changed, 12 insertions, 3 deletions
diff --git a/include/myisammrg.h b/include/myisammrg.h
index cf18e407962..64c2067b70f 100644
--- a/include/myisammrg.h
+++ b/include/myisammrg.h
@@ -1,15 +1,15 @@
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
-
+
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
-
+
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
-
+
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
@@ -30,6 +30,8 @@ extern "C" {
#include <myisam.h>
#endif
+#include <queues.h>
+
#define MYRG_NAME_EXT ".MRG"
/* Param to/from myrg_info */
@@ -60,6 +62,7 @@ typedef struct st_myrg_info
uint tables,options,reclength;
my_bool cache_in_use;
LIST open_list;
+ QUEUE by_key;
} MYRG_INFO;
@@ -70,6 +73,9 @@ extern int myrg_delete(MYRG_INFO *file,const byte *buff);
extern MYRG_INFO *myrg_open(const char *name,int mode,int wait_if_locked);
extern int myrg_panic(enum ha_panic_function function);
extern int myrg_rfirst(MYRG_INFO *file,byte *buf,int inx);
+extern int myrg_rlast(MYRG_INFO *file,byte *buf,int inx);
+extern int myrg_rnext(MYRG_INFO *file,byte *buf,int inx);
+extern int myrg_rprev(MYRG_INFO *file,byte *buf,int inx);
extern int myrg_rkey(MYRG_INFO *file,byte *buf,int inx,const byte *key,
uint key_len, enum ha_rkey_function search_flag);
extern int myrg_rrnd(MYRG_INFO *file,byte *buf,ulonglong pos);
diff --git a/include/mysql_version.h.in b/include/mysql_version.h.in
index 7cfef34176e..7cfef34176e 100755..100644
--- a/include/mysql_version.h.in
+++ b/include/mysql_version.h.in
diff --git a/include/queues.h b/include/queues.h
index 99001bfbf6d..73907327e4e 100644
--- a/include/queues.h
+++ b/include/queues.h
@@ -46,6 +46,9 @@ typedef struct st_queue {
int init_queue(QUEUE *queue,uint max_elements,uint offset_to_key,
pbool max_at_top, int (*compare)(void *,byte *, byte *),
void *first_cmp_arg);
+int reinit_queue(QUEUE *queue,uint max_elements,uint offset_to_key,
+ pbool max_at_top, int (*compare)(void *,byte *, byte *),
+ void *first_cmp_arg);
void delete_queue(QUEUE *queue);
void queue_insert(QUEUE *queue,byte *element);
byte *queue_remove(QUEUE *queue,uint idx);