• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  *   PHP module include file for CUPS.
3  *
4  *   Copyright 2007-2011 by Apple Inc.
5  *   Copyright 1997-2006 by Easy Software Products.
6  *
7  *   These coded instructions, statements, and computer programs are the
8  *   property of Apple Inc. and are protected by Federal copyright
9  *   law.  Distribution and use rights are outlined in the file "COPYING"
10  *   which should have been included with this file.
11  */
12 
13 #ifndef PHPCUPS_H
14 #  define PHPCUPS_H
15 
16 /*
17  * Include necessary headers...
18  */
19 
20 #  include <cups/cups.h>
21 #  include <cups/language.h>
22 #  include <cups/debug-private.h>
23 #  include <fcntl.h>
24 #  include <sys/stat.h>
25 #  if defined(WIN32) || defined(__EMX__)
26 #    include <io.h>
27 #  else
28 #    include <unistd.h>
29 #  endif /* WIN32 || __EMX__ */
30 
31 
32 /*
33  * Zend definitions...
34  */
35 
36 extern zend_module_entry	phpcups_module_entry;
37 #  define phpext_phpcups_ptr	&phpcups_module_entry
38 
39 #  ifdef PHP_WIN32
40 #    define PHP_PHPCUPS_API	__declspec(dllexport)
41 #  else
42 #    define PHP_PHPCUPS_API
43 #  endif
44 
45 #  ifdef ZTS
46 #    include "TSRM.h"
47 #  endif
48 
49 PHP_MINIT_FUNCTION(phpcups);
50 
51 PHP_FUNCTION(cups_cancel_job);
52 PHP_FUNCTION(cups_get_dests);
53 PHP_FUNCTION(cups_get_jobs);
54 PHP_FUNCTION(cups_last_error);
55 PHP_FUNCTION(cups_last_error_string);
56 PHP_FUNCTION(cups_print_file);
57 PHP_FUNCTION(cups_print_files);
58 
59 #endif	/* !PHPCUPS_H */
60 
61