]>
Commit | Line | Data |
---|---|---|
ef416fc2 | 1 | /* |
7a6a01dd | 2 | * "$Id$" |
ef416fc2 | 3 | * |
4 | * IEEE-1394 header for the Common UNIX Printing System (CUPS). | |
5 | * | |
6 | * Copyright 2002 by Easy Software Products, all rights reserved. | |
7 | * | |
8 | * Redistribution and use in source and binary forms, with or | |
9 | * without modification, are permitted provided that the | |
10 | * following conditions are met: | |
11 | * | |
12 | * 1. Redistributions of source code must retain the above | |
13 | * copyright notice, this list of conditions and the | |
14 | * following disclaimer. | |
15 | * | |
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. | |
20 | * | |
21 | * 3. All advertising materials mentioning features or use | |
22 | * of this software must display the following | |
23 | * acknowledgement: | |
24 | * | |
25 | * This product includes software developed by Easy | |
26 | * Software Products. | |
27 | * | |
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. | |
31 | * | |
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 | |
45 | * DAMAGE. | |
46 | */ | |
47 | ||
48 | /* | |
49 | * Include necessary headers. | |
50 | */ | |
51 | ||
52 | #include <cups/cups.h> | |
53 | #include <stdio.h> | |
54 | #include <stdlib.h> | |
55 | #include <stdarg.h> | |
56 | #include <cups/string.h> | |
57 | #include <errno.h> | |
58 | #include <sys/types.h> | |
59 | #include <sys/stat.h> | |
60 | #include <signal.h> | |
61 | ||
62 | #ifdef WIN32 | |
63 | # include <io.h> | |
64 | #else | |
65 | # include <unistd.h> | |
66 | # include <fcntl.h> | |
67 | #endif /* WIN32 */ | |
68 | ||
69 | ||
70 | /* | |
71 | * Device information structure... | |
72 | */ | |
73 | ||
74 | typedef struct | |
75 | { | |
76 | char uri[HTTP_MAX_URI], /* Device URI */ | |
77 | description[128], /* Description of port */ | |
78 | make_model[128]; /* Make and model */ | |
79 | } ieee1394_info_t; | |
80 | ||
81 | ||
82 | /* | |
83 | * Private device connection information... | |
84 | */ | |
85 | ||
86 | typedef void *ieee1394_dev_t; | |
87 | ||
88 | ||
89 | /* | |
90 | * Prototypes for standard IEEE-1394 interface... | |
91 | */ | |
92 | ||
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); | |
99 | ||
100 | ||
101 | /* | |
7a6a01dd | 102 | * End of "$Id$". |
ef416fc2 | 103 | */ |