/*
- * Copyright (c) 2002, Index Data
+ * Copyright (C) 1995-2005, Index Data ApS
* See the file LICENSE for details.
*
- * $Id: tabcomplete.c,v 1.8 2002-09-24 08:05:41 adam Exp $
+ * $Id: tabcomplete.c,v 1.10 2005-01-15 19:47:08 adam Exp $
*/
#include <string.h>
extern char** curret_global_list;
-/* *****************************************************************************
+/* ***************************************************************************
*
- * generic compleater
+ * generic completer
*
- * *****************************************************************************/
+ * ***************************************************************************/
char* complete_from_list(char* completions[], const char *text, int state)
{
}
-/* *****************************************************************************
+/* ***************************************************************************
*
* code for getting a list of valid strings from the oid subsystem
*
- * *****************************************************************************/
+ * ***************************************************************************/
typedef struct {
} oid_callback_t;
/*!
- This is the call back function given to oid_trav... it updates the list of pointers into the oid
- owned data
+ This is the call back function given to oid_trav... it updates the list
+ of pointers into the oid owned data
*/
void oid_loader(struct oident* oid, void* data_)
return data.values;
}
-/* *****************************************************************************
+/* ***************************************************************************
*
- * the compleater functions
+ * the completer functions
*
- * *****************************************************************************/
+ * ***************************************************************************/
char* complete_querytype(const char *text, int state)
{
- char* querytypes[] = {"ccl2rpn","prefix","cclrpn","ccl",0};
+ char* querytypes[] = {"ccl2rpn","prefix","cclrpn","ccl","cql", 0};
return complete_from_list(querytypes,text,state);
}