Qt: Fix the filter expression toolbar layout.
[metze/wireshark/wip.git] / extcap_spawn.h
1 /* extcap_spawn.h
2  * Helper routines for executing extcap utilities
3  *
4  * Copyright 2016, Roland Knall <rknall@gmail.com>
5  *
6  * Wireshark - Network traffic analyzer
7  * By Gerald Combs <gerald@wireshark.org>
8  * Copyright 1998 Gerald Combs
9  *
10  * SPDX-License-Identifier: GPL-2.0-or-later
11  */
12
13 #ifndef __EXTCAP_SPAWN_H__
14 #define __EXTCAP_SPAWN_H__
15
16 #include <config.h>
17
18 #include <glib.h>
19
20 #include <extcap.h>
21
22 typedef struct _extcap_userdata {
23     GPid pid;
24     gchar * extcap_stderr;
25     gint exitcode;
26     gint extcap_stderr_rd;
27     gint extcap_stdout_rd;
28 #ifdef _WIN32
29     HANDLE threadId;
30 #endif
31 } extcap_userdata;
32
33 gboolean extcap_spawn_sync ( gchar * dirname, gchar * command, gint argc, gchar ** argv, gchar ** command_output );
34
35 GPid extcap_spawn_async ( extcap_userdata * userdata, GPtrArray * args );
36
37 #ifdef _WIN32
38 gboolean extcap_wait_for_pipe(HANDLE * pipe_handles, int num_pipe_handles, HANDLE pid);
39 #endif
40
41 #endif
42
43 /*
44  * Editor modelines  -  http://www.wireshark.org/tools/modelines.html
45  *
46  * Local variables:
47  * c-basic-offset: 4
48  * tab-width: 8
49  * indent-tabs-mode: nil
50  * End:
51  *
52  * vi: set shiftwidth=4 tabstop=8 expandtab:
53  * :indentSize=4:tabSize=8:noTabs=true:
54  */