]>
Commit | Line | Data |
---|---|---|
b423cd4c | 1 | /* |
bc44d920 | 2 | * "$Id: phpcups.h 6649 2007-07-11 21:46:42Z mike $" |
b423cd4c | 3 | * |
4 | * PHP module include file for the Common UNIX Printing System (CUPS). | |
5 | * | |
bc44d920 | 6 | * Copyright 2007 by Apple Inc. |
b423cd4c | 7 | * Copyright 1997-2006 by Easy Software Products. |
8 | * | |
9 | * These coded instructions, statements, and computer programs are the | |
bc44d920 | 10 | * property of Apple Inc. and are protected by Federal copyright |
11 | * law. Distribution and use rights are outlined in the file "LICENSE.txt" | |
12 | * which should have been included with this file. If this file is | |
13 | * file is missing or damaged, see the license at "http://www.cups.org/". | |
b423cd4c | 14 | */ |
15 | ||
16 | #ifndef PHPCUPS_H | |
17 | # define PHPCUPS_H | |
18 | ||
19 | /* | |
20 | * Include necessary headers... | |
21 | */ | |
22 | ||
23 | # include <cups/cups.h> | |
24 | # include <cups/language.h> | |
71e16022 | 25 | # include <cups/debug-private.h> |
b423cd4c | 26 | # include <fcntl.h> |
27 | # include <sys/stat.h> | |
28 | # if defined(WIN32) || defined(__EMX__) | |
29 | # include <io.h> | |
30 | # else | |
31 | # include <unistd.h> | |
32 | # endif /* WIN32 || __EMX__ */ | |
33 | ||
34 | ||
35 | /* | |
36 | * Zend definitions... | |
37 | */ | |
38 | ||
39 | extern zend_module_entry phpcups_module_entry; | |
40 | # define phpext_phpcups_ptr &phpcups_module_entry | |
41 | ||
42 | # ifdef PHP_WIN32 | |
43 | # define PHP_PHPCUPS_API __declspec(dllexport) | |
44 | # else | |
45 | # define PHP_PHPCUPS_API | |
46 | # endif | |
47 | ||
48 | # ifdef ZTS | |
49 | # include "TSRM.h" | |
50 | # endif | |
51 | ||
52 | PHP_MINIT_FUNCTION(phpcups); | |
53 | ||
54 | PHP_FUNCTION(cups_cancel_job); | |
55 | PHP_FUNCTION(cups_get_dests); | |
56 | PHP_FUNCTION(cups_get_jobs); | |
57 | PHP_FUNCTION(cups_last_error); | |
58 | PHP_FUNCTION(cups_last_error_string); | |
59 | PHP_FUNCTION(cups_print_file); | |
60 | PHP_FUNCTION(cups_print_files); | |
61 | ||
62 | #endif /* !PHPCUPS_H */ | |
63 | ||
64 | ||
65 | /* | |
bc44d920 | 66 | * End of "$Id: phpcups.h 6649 2007-07-11 21:46:42Z mike $". |
b423cd4c | 67 | */ |