Line data Source code
1 : /*
2 : Unix SMB/CIFS implementation.
3 : Main metadata server / Spotlight routines / noindex backend
4 :
5 : Copyright (C) Ralph Boehme 2019
6 :
7 : This program is free software; you can redistribute it and/or modify
8 : it under the terms of the GNU General Public License as published by
9 : the Free Software Foundation; either version 3 of the License, or
10 : (at your option) any later version.
11 :
12 : This program is distributed in the hope that it will be useful,
13 : but WITHOUT ANY WARRANTY; without even the implied warranty of
14 : MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 : GNU General Public License for more details.
16 :
17 : You should have received a copy of the GNU General Public License
18 : along with this program. If not, see <http://www.gnu.org/licenses/>.
19 : */
20 :
21 : #include "includes.h"
22 : #include "mdssvc.h"
23 :
24 0 : static bool mdssvc_noindex_init(struct mdssvc_ctx *mdssvc_ctx)
25 : {
26 0 : return true;
27 : }
28 :
29 0 : static bool mdssvc_noindex_shutdown(struct mdssvc_ctx *mdssvc_ctx)
30 : {
31 0 : return true;
32 : }
33 :
34 0 : static bool mds_noindex_connect(struct mds_ctx *mds_ctx)
35 : {
36 0 : return true;
37 : }
38 :
39 0 : static bool mds_noindex_search_start(struct sl_query *slq)
40 : {
41 0 : slq->state = SLQ_STATE_DONE;
42 0 : return true;
43 : }
44 :
45 0 : static bool mds_noindex_search_cont(struct sl_query *slq)
46 : {
47 0 : slq->state = SLQ_STATE_DONE;
48 0 : return true;
49 : }
50 :
51 : struct mdssvc_backend mdsscv_backend_noindex = {
52 : .init = mdssvc_noindex_init,
53 : .shutdown = mdssvc_noindex_shutdown,
54 : .connect = mds_noindex_connect,
55 : .search_start = mds_noindex_search_start,
56 : .search_cont = mds_noindex_search_cont,
57 : };
|