annotate lib/javaexec.h @ 7560:046e511d4faf

Fix compilation error on platforms without 'wint_t' type.
author Bruno Haible <bruno@clisp.org>
date Tue, 24 Oct 2006 20:19:49 +0000
parents a48fb0e98c8c
children bbbbbf4cd1c5
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5624
356a0afaf162 New module 'javaexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
1 /* Execute a Java program.
356a0afaf162 New module 'javaexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
2 Copyright (C) 2001-2002 Free Software Foundation, Inc.
356a0afaf162 New module 'javaexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
3 Written by Bruno Haible <haible@clisp.cons.org>, 2001.
356a0afaf162 New module 'javaexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
4
356a0afaf162 New module 'javaexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
5 This program is free software; you can redistribute it and/or modify
356a0afaf162 New module 'javaexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
6 it under the terms of the GNU General Public License as published by
356a0afaf162 New module 'javaexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
7 the Free Software Foundation; either version 2, or (at your option)
356a0afaf162 New module 'javaexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
8 any later version.
356a0afaf162 New module 'javaexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
9
356a0afaf162 New module 'javaexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
10 This program is distributed in the hope that it will be useful,
356a0afaf162 New module 'javaexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
356a0afaf162 New module 'javaexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
356a0afaf162 New module 'javaexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
13 GNU General Public License for more details.
356a0afaf162 New module 'javaexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
14
356a0afaf162 New module 'javaexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
15 You should have received a copy of the GNU General Public License
356a0afaf162 New module 'javaexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
16 along with this program; if not, write to the Free Software Foundation,
5848
a48fb0e98c8c *** empty log message ***
Paul Eggert <eggert@cs.ucla.edu>
parents: 5624
diff changeset
17 Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
5624
356a0afaf162 New module 'javaexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
18
356a0afaf162 New module 'javaexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
19 #ifndef _JAVAEXEC_H
356a0afaf162 New module 'javaexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
20 #define _JAVAEXEC_H
356a0afaf162 New module 'javaexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
21
356a0afaf162 New module 'javaexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
22 #include <stdbool.h>
356a0afaf162 New module 'javaexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
23
356a0afaf162 New module 'javaexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
24 typedef bool execute_fn (const char *progname,
356a0afaf162 New module 'javaexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
25 const char *prog_path, char **prog_argv,
356a0afaf162 New module 'javaexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
26 void *private_data);
356a0afaf162 New module 'javaexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
27
356a0afaf162 New module 'javaexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
28 /* Execute a Java class.
356a0afaf162 New module 'javaexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
29 class_name is the Java class name to be executed.
356a0afaf162 New module 'javaexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
30 classpaths is a list of pathnames to be prepended to the CLASSPATH.
356a0afaf162 New module 'javaexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
31 use_minimal_classpath = true means to ignore the user's CLASSPATH and
356a0afaf162 New module 'javaexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
32 use a minimal one. This is likely to reduce possible problems if the
356a0afaf162 New module 'javaexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
33 user's CLASSPATH contains garbage or a classes.zip file of the wrong
356a0afaf162 New module 'javaexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
34 Java version.
356a0afaf162 New module 'javaexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
35 exe_dir is a directory that may contain a native executable for the class.
356a0afaf162 New module 'javaexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
36 args is a NULL terminated list of arguments to be passed to the program.
356a0afaf162 New module 'javaexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
37 If verbose, the command to be executed will be printed.
356a0afaf162 New module 'javaexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
38 Then the command is passed to the execute function together with the
356a0afaf162 New module 'javaexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
39 private_data argument. This function returns false if OK, true on error.
356a0afaf162 New module 'javaexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
40 Return false if OK, true on error.
356a0afaf162 New module 'javaexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
41 If quiet, error messages will not be printed. */
356a0afaf162 New module 'javaexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
42 extern bool execute_java_class (const char *class_name,
356a0afaf162 New module 'javaexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
43 const char * const *classpaths,
356a0afaf162 New module 'javaexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
44 unsigned int classpaths_count,
356a0afaf162 New module 'javaexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
45 bool use_minimal_classpath,
356a0afaf162 New module 'javaexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
46 const char *exe_dir,
356a0afaf162 New module 'javaexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
47 const char * const *args,
356a0afaf162 New module 'javaexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
48 bool verbose, bool quiet,
356a0afaf162 New module 'javaexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
49 execute_fn *executer, void *private_data);
356a0afaf162 New module 'javaexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
50
356a0afaf162 New module 'javaexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
51 #endif /* _JAVAEXEC_H */