]>
Commit | Line | Data |
---|---|---|
ef416fc2 | 1 | /* |
2 | * "$Id: php_phpcups.h 4523 2005-05-23 20:14:19Z mike $" | |
3 | * | |
4 | * PHP module include file for the Common UNIX Printing System (CUPS). | |
5 | * | |
6 | * Copyright 1997-2003 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-3111 USA | |
19 | * | |
20 | * Voice: (301) 373-9603 | |
21 | * EMail: cups-info@cups.org | |
22 | * WWW: http://www.cups.org | |
23 | */ | |
24 | ||
25 | #ifndef PHP_PHPCUPS_H | |
26 | # define PHP_PHPCUPS_H | |
27 | ||
28 | extern zend_module_entry phpcups_module_entry; | |
29 | # define phpext_phpcups_ptr &phpcups_module_entry | |
30 | ||
31 | # ifdef PHP_WIN32 | |
32 | # define PHP_PHPCUPS_API __declspec(dllexport) | |
33 | # else | |
34 | # define PHP_PHPCUPS_API | |
35 | # endif | |
36 | ||
37 | # ifdef ZTS | |
38 | # include "TSRM.h" | |
39 | # endif | |
40 | ||
41 | PHP_MINIT_FUNCTION(phpcups); | |
42 | PHP_MSHUTDOWN_FUNCTION(phpcups); | |
43 | PHP_RINIT_FUNCTION(phpcups); | |
44 | PHP_RSHUTDOWN_FUNCTION(phpcups); | |
45 | PHP_MINFO_FUNCTION(phpcups); | |
46 | ||
47 | PHP_FUNCTION(confirm_phpcups_compiled); | |
48 | PHP_FUNCTION(cups_get_dest_options); | |
49 | PHP_FUNCTION(cups_get_dest_list); | |
50 | PHP_FUNCTION(cups_get_jobs); | |
51 | PHP_FUNCTION(cups_cancel_job); | |
52 | PHP_FUNCTION(cups_print_file); | |
53 | PHP_FUNCTION(cups_last_error); | |
54 | PHP_FUNCTION(cups_get_printer_attributes); | |
55 | ||
56 | /* | |
57 | Declare any global variables you may need between the BEGIN | |
58 | and END macros here: | |
59 | ||
60 | ZEND_BEGIN_MODULE_GLOBALS(phpcups) | |
61 | int global_value; | |
62 | char *global_string; | |
63 | ZEND_END_MODULE_GLOBALS(phpcups) | |
64 | */ | |
65 | ||
66 | /* In every utility function you add that needs to use variables | |
67 | in php_phpcups_globals, call TSRM_FETCH(); after declaring other | |
68 | variables used by that function, or better yet, pass in TSRMG_CC | |
69 | after the last function argument and declare your utility function | |
70 | with TSRMG_DC after the last declared argument. Always refer to | |
71 | the globals in your function as PHPCUPS_G(variable). You are | |
72 | encouraged to rename these macros something shorter, see | |
73 | examples in any other php module directory. | |
74 | */ | |
75 | ||
76 | # ifdef ZTS | |
77 | # define PHPCUPS_G(v) TSRMG(phpcups_globals_id, zend_phpcups_globals *, v) | |
78 | # else | |
79 | # define PHPCUPS_G(v) (phpcups_globals.v) | |
80 | # endif | |
81 | ||
82 | #endif /* !PHP_PHPCUPS_H */ | |
83 | ||
84 | ||
85 | /* | |
86 | * End of "$Id: php_phpcups.h 4523 2005-05-23 20:14:19Z mike $". | |
87 | */ |