]> git.ipfire.org Git - thirdparty/cups.git/blob - scripting/php/phpcups.h
Load cups into easysw/current.
[thirdparty/cups.git] / scripting / php / phpcups.h
1 /*
2 * "$Id: phpcups.h 5171 2006-02-25 08:44:43Z mike $"
3 *
4 * PHP module include file for the Common UNIX Printing System (CUPS).
5 *
6 * Copyright 1997-2006 by Easy Software Products.
7 *
8 * These coded instructions, statements, and computer programs are the
9 * property of Easy Software Products and are protected by Federal
10 * copyright law. Distribution and use rights are outlined in the file
11 * "LICENSE.txt" which should have been included with this file. If this
12 * file is missing or damaged please contact Easy Software Products
13 * at:
14 *
15 * Attn: CUPS Licensing Information
16 * Easy Software Products
17 * 44141 Airport View Drive, Suite 204
18 * Hollywood, Maryland 20636 USA
19 *
20 * Voice: (301) 373-9603
21 * EMail: cups-info@cups.org
22 * WWW: http://www.cups.org/
23 */
24
25 #ifndef PHPCUPS_H
26 # define PHPCUPS_H
27
28 /*
29 * Include necessary headers...
30 */
31
32 # include <cups/cups.h>
33 # include <cups/language.h>
34 # include <cups/debug.h>
35 # include <stdlib.h>
36 # include <ctype.h>
37 # include <errno.h>
38 # include <fcntl.h>
39 # include <sys/stat.h>
40 # if defined(WIN32) || defined(__EMX__)
41 # include <io.h>
42 # else
43 # include <unistd.h>
44 # endif /* WIN32 || __EMX__ */
45
46
47 /*
48 * Zend definitions...
49 */
50
51 extern zend_module_entry phpcups_module_entry;
52 # define phpext_phpcups_ptr &phpcups_module_entry
53
54 # ifdef PHP_WIN32
55 # define PHP_PHPCUPS_API __declspec(dllexport)
56 # else
57 # define PHP_PHPCUPS_API
58 # endif
59
60 # ifdef ZTS
61 # include "TSRM.h"
62 # endif
63
64 PHP_MINIT_FUNCTION(phpcups);
65
66 PHP_FUNCTION(cups_cancel_job);
67 PHP_FUNCTION(cups_get_dests);
68 PHP_FUNCTION(cups_get_jobs);
69 PHP_FUNCTION(cups_last_error);
70 PHP_FUNCTION(cups_last_error_string);
71 PHP_FUNCTION(cups_print_file);
72 PHP_FUNCTION(cups_print_files);
73
74 #endif /* !PHPCUPS_H */
75
76
77 /*
78 * End of "$Id: phpcups.h 5171 2006-02-25 08:44:43Z mike $".
79 */