5902
|
1 /* Execute a C# program. |
|
2 Copyright (C) 2003 Free Software Foundation, Inc. |
|
3 Written by Bruno Haible <bruno@clisp.org>, 2003. |
|
4 |
|
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 2, or (at your option) |
|
8 any later version. |
|
9 |
|
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. |
|
14 |
|
15 You should have received a copy of the GNU General Public License |
|
16 along with this program; if not, write to the Free Software Foundation, |
|
17 Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ |
|
18 |
|
19 #ifndef _CSHARPEXEC_H |
|
20 #define _CSHARPEXEC_H |
|
21 |
|
22 #include <stdbool.h> |
|
23 |
|
24 typedef bool execute_fn (const char *progname, |
|
25 const char *prog_path, char **prog_argv, |
|
26 void *private_data); |
|
27 |
|
28 /* Execute a C# program. |
|
29 assembly_path is the assembly's pathname (= program name with .exe). |
|
30 libdirs is a list of directories to be searched for libraries. |
|
31 args is a NULL terminated list of arguments to be passed to the program. |
|
32 If verbose, the command to be executed will be printed. |
|
33 Then the command is passed to the execute function together with the |
|
34 private_data argument. This function returns false if OK, true on error. |
|
35 Return false if OK, true on error. |
|
36 If quiet, error messages will not be printed. */ |
|
37 extern bool execute_csharp_program (const char *assembly_path, |
|
38 const char * const *libdirs, |
|
39 unsigned int libdirs_count, |
|
40 const char * const *args, |
|
41 bool verbose, bool quiet, |
|
42 execute_fn *executer, void *private_data); |
|
43 |
|
44 #endif /* _CSHARPEXEC_H */ |