]>
git.ipfire.org Git - thirdparty/cups.git/blob - backend/ieee1394.h
2 * "$Id: ieee1394.h 4494 2005-02-18 02:18:11Z mike $"
4 * IEEE-1394 header for the Common UNIX Printing System (CUPS).
6 * Copyright 2002 by Easy Software Products, all rights reserved.
8 * Redistribution and use in source and binary forms, with or
9 * without modification, are permitted provided that the
10 * following conditions are met:
12 * 1. Redistributions of source code must retain the above
13 * copyright notice, this list of conditions and the
14 * following disclaimer.
16 * 2. Redistributions in binary form must reproduce the
17 * above copyright notice, this list of conditions and
18 * the following disclaimer in the documentation and/or
19 * other materials provided with the distribution.
21 * 3. All advertising materials mentioning features or use
22 * of this software must display the following
25 * This product includes software developed by Easy
28 * 4. The name of Easy Software Products may not be used to
29 * endorse or promote products derived from this software
30 * without specific prior written permission.
32 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS
33 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
34 * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
35 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
36 * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS
37 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
38 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
39 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
40 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
41 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
42 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
43 * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
44 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
49 * Include necessary headers.
52 #include <cups/cups.h>
56 #include <cups/string.h>
58 #include <sys/types.h>
71 * Device information structure...
76 char uri
[HTTP_MAX_URI
], /* Device URI */
77 description
[128], /* Description of port */
78 make_model
[128]; /* Make and model */
83 * Private device connection information...
86 typedef void *ieee1394_dev_t
;
90 * Prototypes for standard IEEE-1394 interface...
93 extern ieee1394_info_t
*ieee1394_list(int *num_devices
);
94 extern ieee1394_dev_t
ieee1394_open(const char *uri
);
95 extern int ieee1394_close(ieee1394_dev_t dev
);
96 extern int ieee1394_read(ieee1394_dev_t dev
, char *buffer
, int len
);
97 extern int ieee1394_write(ieee1394_dev_t dev
, char *buffer
, int len
);
98 extern const char *ieee1394_error(void);
102 * End of "$Id: ieee1394.h 4494 2005-02-18 02:18:11Z mike $".