messages_dgm: Avoid an unnecessary declaration
[kai/samba-autobuild/.git] / source3 / lib / util_file.h
1 /*
2  * Unix SMB/CIFS implementation.
3  * SMB parameters and setup
4  * Copyright (C) Andrew Tridgell 1992-1998 Modified by Jeremy Allison 1995.
5  *
6  * This program is free software; you can redistribute it and/or modify it under
7  * the terms of the GNU General Public License as published by the Free
8  * Software Foundation; either version 3 of the License, or (at your option)
9  * any later version.
10  *
11  * This program is distributed in the hope that it will be useful, but WITHOUT
12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
14  * more details.
15  *
16  * You should have received a copy of the GNU General Public License along with
17  * this program; if not, see <http://www.gnu.org/licenses/>.
18  */
19
20 #ifndef __LIB_UTIL_FILE_H__
21 #define __LIB_UTIL_FILE_H__
22
23 #include "replace.h"
24 #include <tevent.h>
25
26 struct tevent_req *file_pload_send(TALLOC_CTX *mem_ctx,
27                                    struct tevent_context *ev,
28                                    const char *syscmd, size_t maxsize);
29 int file_pload_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
30                     uint8_t **buf);
31
32 char **file_lines_pload(TALLOC_CTX *mem_ctx, const char *syscmd,
33                         int *numlines);
34
35 #endif