smbd: Simplify an if-condition
[Samba.git] / source3 / rpc_server / mdssvc / mdssvc_noindex.c
blobff466af61d0d4ce36f32f5e1a4f15ea20ca23989
1 /*
2 Unix SMB/CIFS implementation.
3 Main metadata server / Spotlight routines / noindex backend
5 Copyright (C) Ralph Boehme 2019
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.
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.
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/>.
21 #include "includes.h"
22 #include "mdssvc.h"
24 static bool mdssvc_noindex_init(struct mdssvc_ctx *mdssvc_ctx)
26 return true;
29 static bool mdssvc_noindex_shutdown(struct mdssvc_ctx *mdssvc_ctx)
31 return true;
34 static bool mds_noindex_connect(struct mds_ctx *mds_ctx)
36 return true;
39 static bool mds_noindex_search_start(struct sl_query *slq)
41 slq->state = SLQ_STATE_DONE;
42 return true;
45 static bool mds_noindex_search_cont(struct sl_query *slq)
47 slq->state = SLQ_STATE_DONE;
48 return true;
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,