havelib: Fix for Solaris 11 OpenIndiana and Solaris 11 OmniOS.
[gnulib.git] / lib / csharpexec.h
blob088ac06ffaf23721a30da2a40597233d518ab838
1 /* Execute a C# program.
2 Copyright (C) 2003, 2009-2020 Free Software Foundation, Inc.
3 Written by Bruno Haible <bruno@clisp.org>, 2003.
5 This program is free software: you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 3 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program. If not, see <https://www.gnu.org/licenses/>. */
18 #ifndef _CSHARPEXEC_H
19 #define _CSHARPEXEC_H
21 #include <stdbool.h>
23 typedef bool execute_fn (const char *progname,
24 const char *prog_path, const char * const *prog_argv,
25 void *private_data);
27 /* Execute a C# program.
28 assembly_path is the assembly's pathname (= program name with .exe).
29 libdirs is a list of directories to be searched for libraries.
30 args is a NULL terminated list of arguments to be passed to the program.
31 If verbose, the command to be executed will be printed.
32 Then the command is passed to the execute function together with the
33 private_data argument. This function returns false if OK, true on error.
34 Return false if OK, true on error.
35 If quiet, error messages will not be printed. */
36 extern bool execute_csharp_program (const char *assembly_path,
37 const char * const *libdirs,
38 unsigned int libdirs_count,
39 const char * const *args,
40 bool verbose, bool quiet,
41 execute_fn *executer, void *private_data);
43 #endif /* _CSHARPEXEC_H */