2 * "$Id: php_phpcups.h 4523 2005-05-23 20:14:19Z mike $"
4 * PHP module include file for the Common UNIX Printing System (CUPS).
6 * Copyright 1997-2003 by Easy Software Products.
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
15 * Attn: CUPS Licensing Information
16 * Easy Software Products
17 * 44141 Airport View Drive, Suite 204
18 * Hollywood, Maryland 20636-3111 USA
20 * Voice: (301) 373-9603
21 * EMail: cups-info@cups.org
22 * WWW: http://www.cups.org
26 # define PHP_PHPCUPS_H
28 extern zend_module_entry phpcups_module_entry
;
29 # define phpext_phpcups_ptr &phpcups_module_entry
32 # define PHP_PHPCUPS_API __declspec(dllexport)
34 # define PHP_PHPCUPS_API
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
);
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
);
57 Declare any global variables you may need between the BEGIN
60 ZEND_BEGIN_MODULE_GLOBALS(phpcups)
63 ZEND_END_MODULE_GLOBALS(phpcups)
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.
77 # define PHPCUPS_G(v) TSRMG(phpcups_globals_id, zend_phpcups_globals *, v)
79 # define PHPCUPS_G(v) (phpcups_globals.v)
82 #endif /* !PHP_PHPCUPS_H */
86 * End of "$Id: php_phpcups.h 4523 2005-05-23 20:14:19Z mike $".