2 Unix SMB/CIFS implementation.
3 mdssvc client functions
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/>.
25 struct mdscli_search_ctx
;
27 struct mdsctx_id
mdscli_new_ctx_id(struct mdscli_ctx
*mdscli_ctx
);
28 char *mdscli_get_basepath(TALLOC_CTX
*mem_ctx
,
29 struct mdscli_ctx
*mdscli_ctx
);
30 struct mdscli_ctx
*mdscli_search_get_ctx(struct mdscli_search_ctx
*search
);
32 struct tevent_req
*mdscli_connect_send(TALLOC_CTX
*mem_ctx
,
33 struct tevent_context
*ev
,
34 struct dcerpc_binding_handle
*bh
,
35 const char *share_name
,
36 const char *mount_path
);
37 NTSTATUS
mdscli_connect_recv(struct tevent_req
*req
,
39 struct mdscli_ctx
**mdscli_ctx
);
40 NTSTATUS
mdscli_connect(TALLOC_CTX
*mem_ctx
,
41 struct dcerpc_binding_handle
*bh
,
42 const char *share_name
,
43 const char *mount_path
,
44 struct mdscli_ctx
**mdscli_ctx
);
46 struct tevent_req
*mdscli_search_send(TALLOC_CTX
*mem_ctx
,
47 struct tevent_context
*ev
,
48 struct mdscli_ctx
*mdscli_ctx
,
49 const char *mds_query
,
50 const char *path_scope
,
52 NTSTATUS
mdscli_search_recv(struct tevent_req
*req
,
54 struct mdscli_search_ctx
**search
);
55 NTSTATUS
mdscli_search(TALLOC_CTX
*mem_ctx
,
56 struct mdscli_ctx
*mdscli_ctx
,
57 const char *mds_query
,
58 const char *path_scope
,
60 struct mdscli_search_ctx
**search
);
62 struct tevent_req
*mdscli_get_results_send(
64 struct tevent_context
*ev
,
65 struct mdscli_search_ctx
*search
);
66 NTSTATUS
mdscli_get_results_recv(struct tevent_req
*req
,
69 NTSTATUS
mdscli_get_results(TALLOC_CTX
*mem_ctx
,
70 struct mdscli_search_ctx
*search
,
73 struct tevent_req
*mdscli_get_path_send(TALLOC_CTX
*mem_ctx
,
74 struct tevent_context
*ev
,
75 struct mdscli_ctx
*mdscli_ctx
,
77 NTSTATUS
mdscli_get_path_recv(struct tevent_req
*req
,
80 NTSTATUS
mdscli_get_path(TALLOC_CTX
*mem_ctx
,
81 struct mdscli_ctx
*mdscli_ctx
,
85 struct tevent_req
*mdscli_close_search_send(TALLOC_CTX
*mem_ctx
,
86 struct tevent_context
*ev
,
87 struct mdscli_search_ctx
**_search
);
88 NTSTATUS
mdscli_close_search_recv(struct tevent_req
*req
);
89 NTSTATUS
mdscli_close_search(struct mdscli_search_ctx
**search
);
91 struct tevent_req
*mdscli_disconnect_send(TALLOC_CTX
*mem_ctx
,
92 struct tevent_context
*ev
,
93 struct mdscli_ctx
*mdscli_ctx
);
94 NTSTATUS
mdscli_disconnect_recv(struct tevent_req
*req
);
95 NTSTATUS
mdscli_disconnect(struct mdscli_ctx
*mdscli_ctx
);
97 #endif /* _MDSCLI_H_ */