]> git.ipfire.org Git - thirdparty/cups.git/blame - scripting/php/phpcups.h
Load cups into easysw/current.
[thirdparty/cups.git] / scripting / php / phpcups.h
CommitLineData
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>
25# include <cups/debug.h>
26# include <stdlib.h>
27# include <ctype.h>
28# include <errno.h>
29# include <fcntl.h>
30# include <sys/stat.h>
31# if defined(WIN32) || defined(__EMX__)
32# include <io.h>
33# else
34# include <unistd.h>
35# endif /* WIN32 || __EMX__ */
36
37
38/*
39 * Zend definitions...
40 */
41
42extern zend_module_entry phpcups_module_entry;
43# define phpext_phpcups_ptr &phpcups_module_entry
44
45# ifdef PHP_WIN32
46# define PHP_PHPCUPS_API __declspec(dllexport)
47# else
48# define PHP_PHPCUPS_API
49# endif
50
51# ifdef ZTS
52# include "TSRM.h"
53# endif
54
55PHP_MINIT_FUNCTION(phpcups);
56
57PHP_FUNCTION(cups_cancel_job);
58PHP_FUNCTION(cups_get_dests);
59PHP_FUNCTION(cups_get_jobs);
60PHP_FUNCTION(cups_last_error);
61PHP_FUNCTION(cups_last_error_string);
62PHP_FUNCTION(cups_print_file);
63PHP_FUNCTION(cups_print_files);
64
65#endif /* !PHPCUPS_H */
66
67
68/*
bc44d920 69 * End of "$Id: phpcups.h 6649 2007-07-11 21:46:42Z mike $".
b423cd4c 70 */