1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

lib/util: inline lib/util/util_runcmd.h again

samba_runcmd_state should not be exposed!

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>

Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Fri Feb  8 02:54:20 CET 2019 on sn-devel-144
This commit is contained in:
Stefan Metzmacher 2019-02-02 13:09:37 +01:00 committed by Volker Lendecke
parent 65e52c24bc
commit 531b713c55
2 changed files with 15 additions and 38 deletions

View File

@ -27,11 +27,25 @@
#include "includes.h"
#include "system/filesys.h"
#include <tevent.h>
#include "../lib/util/tevent_unix.h"
#include "../lib/util/util_runcmd.h"
#include "../lib/util/tfork.h"
#include "../lib/util/sys_rw.h"
struct samba_runcmd_state {
int stdout_log_level;
int stderr_log_level;
struct tevent_fd *fde_stdout;
struct tevent_fd *fde_stderr;
struct tevent_fd *fde_status;
int fd_stdin, fd_stdout, fd_stderr, fd_status;
char *arg0;
pid_t pid;
struct tfork *tfork;
char buf[1024];
uint16_t buf_used;
};
static void samba_runcmd_cleanup_fn(struct tevent_req *req,
enum tevent_req_state req_state)
{

View File

@ -1,37 +0,0 @@
/*
Unix SMB/CIFS implementation.
run a child command
Copyright (C) Andrew Tridgell 2010
This program 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 of the License, or
(at your option) any later version.
This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <tevent.h>
struct samba_runcmd_state {
int stdout_log_level;
int stderr_log_level;
struct tevent_fd *fde_stdout;
struct tevent_fd *fde_stderr;
struct tevent_fd *fde_status;
int fd_stdin, fd_stdout, fd_stderr, fd_status;
char *arg0;
pid_t pid;
struct tfork *tfork;
char buf[1024];
uint16_t buf_used;
};