imainarg.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /* Copyright (C) 1996, 1999 Aladdin Enterprises. All rights reserved.
  2. This software is provided AS-IS with no warranty, either express or
  3. implied.
  4. This software is distributed under license and may not be copied,
  5. modified or distributed except as expressly authorized under the terms
  6. of the license contained in the file LICENSE in this distribution.
  7. For more information about licensing, please refer to
  8. http://www.ghostscript.com/licensing/. For information on
  9. commercial licensing, go to http://www.artifex.com/licensing/ or
  10. contact Artifex Software, Inc., 101 Lucas Valley Road #110,
  11. San Rafael, CA 94903, U.S.A., +1(415)492-9861.
  12. */
  13. /* $Id: imainarg.h,v 1.6 2002/06/16 04:47:10 lpd Exp $ */
  14. /* argv/argc interface to imainarg.c */
  15. #ifndef imainarg_INCLUDED
  16. # define imainarg_INCLUDED
  17. /* Define an opaque type for an interpreter instance. See imain.h. */
  18. #ifndef gs_main_instance_DEFINED
  19. # define gs_main_instance_DEFINED
  20. typedef struct gs_main_instance_s gs_main_instance;
  21. #endif
  22. /*
  23. * As a shortcut for very high-level clients, we define a single call
  24. * that does the equivalent of command line invocation, passing argc
  25. * and argv. This call includes calling init0 through init2.
  26. * argv should really be const char *[], but ANSI C requires writable
  27. * strings (which, however, it forbids the callee to modify!).
  28. */
  29. int gs_main_init_with_args(gs_main_instance * minst, int argc, char *argv[]);
  30. /*
  31. * Run the 'start' procedure (after processing the command line).
  32. */
  33. int gs_main_run_start(gs_main_instance * minst);
  34. #endif /* imainarg_INCLUDED */