/* This file is part of GNU Dico.
Copyright (C) 2008-2024 Sergey Poznyakoff
GNU Dico is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3, or (at your option)
any later version.
GNU Dico 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 General Public License for more details.
You should have received a copy of the GNU General Public License
along with GNU Dico. If not, see . */
#include
#include
static int
_init(int argc, char **argv)
{
/* FIXME */
return 1;
}
static dico_handle_t
_init_db(const char *dbname, int argc, char **argv)
{
/* FIXME */
return NULL;
}
static int
_free_db(dico_handle_t hp)
{
/* FIXME */
return 1;
}
static int
_open(dico_handle_t dp)
{
/* FIXME */
return 1;
}
static int
_close(dico_handle_t hp)
{
/* FIXME */
return 1;
}
static char *
_info(dico_handle_t hp)
{
/* FIXME */
return NULL;
}
static char *
_descr(dico_handle_t hp)
{
/* FIXME */
return NULL;
}
int
_lang(dico_handle_t hp, dico_list_t list[2])
{
/* FIXME */
return 1;
}
static dico_result_t
_match(dico_handle_t hp, const dico_strategy_t strat, const char *word)
{
/* FIXME */
return NULL;
}
static dico_result_t
_define(dico_handle_t hp, const char *word)
{
/* FIXME */
return NULL;
}
static int
_output_result (dico_result_t rp, size_t n, dico_stream_t str)
{
/* FIXME */
return 1;
}
static size_t
_result_count (dico_result_t rp)
{
/* FIXME */
return 0;
}
static size_t
_compare_count (dico_result_t rp)
{
/* FIXME */
return 0;
}
static void
_free_result(dico_result_t rp)
{
/* FIXME */
}
static int
_result_headers(dico_result_t rp, dico_assoc_list_t hdr)
{
/* FIXME */
return 0;
}
static int
_run_test(int argc, char **argv)
{
/* FIXME */
return 1;
}
char *
_db_mime_header(dico_handle_t hp)
{
/* FIXME */
return NULL;
}
struct dico_database_module DICO_EXPORT(, module) = {
.dico_version = DICO_MODULE_VERSION,
.dico_capabilities = DICO_CAPA_NONE,
.dico_init = _init,
.dico_init_db = _init_db,
.dico_free_db = _free_db,
.dico_open = _open,
.dico_close = _close,
.dico_db_info = _info,
.dico_db_descr = _descr,
.dico_db_lang = _lang,
.dico_match = _match,
.dico_define = _define,
.dico_output_result = _output_result,
.dico_result_count = _result_count,
.dico_compare_count = _compare_count,
.dico_free_result = _free_result,
.dico_result_headers = _result_headers,
.dico_run_test = _run_test,
.dico_db_mime_header = _db_mime_header
};