annotate lib/csharpexec.h @ 10622:ac6f431cc95d

New module 'fclose'.
author Bruno Haible <bruno@clisp.org>
date Sat, 11 Oct 2008 14:18:29 +0200
parents bbbbbf4cd1c5
children e8d2c6fc33ad
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5902
95383b7d1b52 New module 'csharpexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
1 /* Execute a C# program.
95383b7d1b52 New module 'csharpexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
2 Copyright (C) 2003 Free Software Foundation, Inc.
95383b7d1b52 New module 'csharpexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
3 Written by Bruno Haible <bruno@clisp.org>, 2003.
95383b7d1b52 New module 'csharpexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
4
9309
bbbbbf4cd1c5 Change copyright notice from GPLv2+ to GPLv3+.
Bruno Haible <bruno@clisp.org>
parents: 5902
diff changeset
5 This program is free software: you can redistribute it and/or modify
5902
95383b7d1b52 New module 'csharpexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
6 it under the terms of the GNU General Public License as published by
9309
bbbbbf4cd1c5 Change copyright notice from GPLv2+ to GPLv3+.
Bruno Haible <bruno@clisp.org>
parents: 5902
diff changeset
7 the Free Software Foundation; either version 3 of the License, or
bbbbbf4cd1c5 Change copyright notice from GPLv2+ to GPLv3+.
Bruno Haible <bruno@clisp.org>
parents: 5902
diff changeset
8 (at your option) any later version.
5902
95383b7d1b52 New module 'csharpexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
9
95383b7d1b52 New module 'csharpexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
10 This program is distributed in the hope that it will be useful,
95383b7d1b52 New module 'csharpexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
95383b7d1b52 New module 'csharpexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
95383b7d1b52 New module 'csharpexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
13 GNU General Public License for more details.
95383b7d1b52 New module 'csharpexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
14
95383b7d1b52 New module 'csharpexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
15 You should have received a copy of the GNU General Public License
9309
bbbbbf4cd1c5 Change copyright notice from GPLv2+ to GPLv3+.
Bruno Haible <bruno@clisp.org>
parents: 5902
diff changeset
16 along with this program. If not, see <http://www.gnu.org/licenses/>. */
5902
95383b7d1b52 New module 'csharpexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
17
95383b7d1b52 New module 'csharpexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
18 #ifndef _CSHARPEXEC_H
95383b7d1b52 New module 'csharpexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
19 #define _CSHARPEXEC_H
95383b7d1b52 New module 'csharpexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
20
95383b7d1b52 New module 'csharpexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
21 #include <stdbool.h>
95383b7d1b52 New module 'csharpexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
22
95383b7d1b52 New module 'csharpexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
23 typedef bool execute_fn (const char *progname,
95383b7d1b52 New module 'csharpexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
24 const char *prog_path, char **prog_argv,
95383b7d1b52 New module 'csharpexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
25 void *private_data);
95383b7d1b52 New module 'csharpexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
26
95383b7d1b52 New module 'csharpexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
27 /* Execute a C# program.
95383b7d1b52 New module 'csharpexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
28 assembly_path is the assembly's pathname (= program name with .exe).
95383b7d1b52 New module 'csharpexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
29 libdirs is a list of directories to be searched for libraries.
95383b7d1b52 New module 'csharpexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
30 args is a NULL terminated list of arguments to be passed to the program.
95383b7d1b52 New module 'csharpexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
31 If verbose, the command to be executed will be printed.
95383b7d1b52 New module 'csharpexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
32 Then the command is passed to the execute function together with the
95383b7d1b52 New module 'csharpexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
33 private_data argument. This function returns false if OK, true on error.
95383b7d1b52 New module 'csharpexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
34 Return false if OK, true on error.
95383b7d1b52 New module 'csharpexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
35 If quiet, error messages will not be printed. */
95383b7d1b52 New module 'csharpexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
36 extern bool execute_csharp_program (const char *assembly_path,
95383b7d1b52 New module 'csharpexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
37 const char * const *libdirs,
95383b7d1b52 New module 'csharpexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
38 unsigned int libdirs_count,
95383b7d1b52 New module 'csharpexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
39 const char * const *args,
95383b7d1b52 New module 'csharpexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
40 bool verbose, bool quiet,
95383b7d1b52 New module 'csharpexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
41 execute_fn *executer, void *private_data);
95383b7d1b52 New module 'csharpexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
42
95383b7d1b52 New module 'csharpexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
43 #endif /* _CSHARPEXEC_H */