aboutsummaryrefslogtreecommitdiff
path: root/modules/template.c
blob: dabcf7b7e1a2fd466f8fc7d40ccf4346f7bd3e27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
/* This file is part of GNU Dico.
   Copyright (C) 2008, 2010 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 <http://www.gnu.org/licenses/>. */

#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <dico.h>


static int
mod_init(int argc, char **argv)
{
    /* FIXME */
    return 1;
}
    
static dico_handle_t
mod_init_db(const char *dbname, int argc, char **argv)
{
    /* FIXME */
    return NULL;
}

static int
mod_free_db(dico_handle_t hp)
{
    /* FIXME */
    return 1;
}

static int
mod_open(dico_handle_t dp)
{
    /* FIXME */
    return 1;
}

static int
mod_close(dico_handle_t hp)
{
    /* FIXME */
    return 1;
}

static char *
mod_info(dico_handle_t hp)
{
    /* FIXME */
    return NULL;
}

static char *
mod_descr(dico_handle_t hp)
{
    /* FIXME */
    return NULL;
}

int
dico_db_lang (dico_handle_t hp, dico_list_t list[2])
{
    /* FIXME */
    return NULL;
}

static dico_result_t
mod_match(dico_handle_t hp, const dico_strategy_t strat, const char *word)
{
    /* FIXME */
    return NULL;
}

static dico_result_t
mod_define(dico_handle_t hp, const char *word)
{
    /* FIXME */
    return NULL;
}

static int
mod_output_result (dico_result_t rp, size_t n, dico_stream_t str)
{
    /* FIXME */
    return 1;
}

static size_t
mod_result_count (dico_result_t rp)
{
    /* FIXME */
    return 0;
}

static size_t
mod_compare_count (dico_result_t rp)
{
    /* FIXME */
    return 0;
}

static void
mod_free_result(dico_result_t rp)
{
    /* FIXME */
}

struct dico_database_module DICO_EXPORT(sample, module) = {
    DICO_MODULE_VERSION,
    DICO_CAPA_NONE,
    mod_init,
    mod_init_db,
    mod_free_db
    mod_open,
    mod_close,
    mod_info,
    mod_descr,
    mod_lang,
    mod_match,
    mod_define,
    mod_output_result,
    mod_result_count,
    mod_compare_count,
    mod_free_result
};

Return to:

Send suggestions and report system problems to the System administrator.