Skip to content

Commit 90ae0f6

Browse files
committed
libcupsfilters, parallel, test1284: Moved device-ID-related functions into libcupsfilters
1 parent f4edfc5 commit 90ae0f6

File tree

10 files changed

+39
-25
lines changed

10 files changed

+39
-25
lines changed

Makefile.am

+6-7
Original file line numberDiff line numberDiff line change
@@ -53,18 +53,17 @@ check_PROGRAMS = test1284
5353
#TESTS = test1284
5454

5555
parallel_SOURCES = \
56-
backend/backend-private.h \
57-
backend/ieee1284.c \
5856
backend/parallel.c
5957
parallel_LDADD = \
58+
libcupsfilters.la \
6059
libppd.la \
6160
$(CUPS_LIBS)
6261
parallel_CFLAGS = \
62+
-I$(srcdir)/cupsfilters/ \
6363
-I$(srcdir)/ppd/ \
6464
$(CUPS_CFLAGS)
6565

6666
serial_SOURCES = \
67-
backend/backend-private.h \
6867
backend/serial.c
6968
serial_LDADD = \
7069
libppd.la \
@@ -74,7 +73,6 @@ serial_CFLAGS = \
7473
$(CUPS_CFLAGS)
7574

7675
beh_SOURCES = \
77-
backend/backend-private.h \
7876
backend/beh.c
7977
beh_LDADD = \
8078
libppd.la \
@@ -84,7 +82,6 @@ beh_CFLAGS = \
8482
$(CUPS_CFLAGS)
8583

8684
implicitclass_SOURCES = \
87-
backend/backend-private.h \
8885
backend/implicitclass.c
8986
implicitclass_LDADD = \
9087
libcupsfilters.la \
@@ -96,13 +93,13 @@ implicitclass_CFLAGS = \
9693
$(CUPS_CFLAGS)
9794

9895
test1284_SOURCES = \
99-
backend/backend-private.h \
100-
backend/ieee1284.c \
10196
backend/test1284.c
10297
test1284_LDADD = \
98+
libcupsfilters.la \
10399
libppd.la \
104100
$(CUPS_LIBS)
105101
test1284_CFLAGS = \
102+
-I$(srcdir)/cupsfilters/ \
106103
-I$(srcdir)/ppd/ \
107104
$(CUPS_CFLAGS)
108105

@@ -247,6 +244,7 @@ pkgfiltersinclude_DATA = \
247244
cupsfilters/colormanager.h \
248245
cupsfilters/driver.h \
249246
cupsfilters/filter.h \
247+
cupsfilters/ieee1284.h \
250248
cupsfilters/image.h \
251249
cupsfilters/ipp.h \
252250
cupsfilters/log.h \
@@ -288,6 +286,7 @@ libcupsfilters_la_SOURCES = \
288286
cupsfilters/dither.c \
289287
cupsfilters/filter.c \
290288
cupsfilters/ghostscript.c \
289+
cupsfilters/ieee1284.c \
291290
cupsfilters/image.c \
292291
cupsfilters/image-bmp.c \
293292
cupsfilters/image-colorspace.c \

NEWS

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ NEWS - OpenPrinting CUPS Filters v1.27.5 - 2020-06-05
33

44
CHANGES IN V2.0.0
55

6+
- libcupsfilters, parallel, test1284: Moved
7+
IEEE1284-device-ID-related functions into the public API of
8+
libcupsfilters.
69
- foomatic-rip: Remove temporary file created during pdf-to-ps
710
conversion (Pull request #313).
811
- libppd: Added PPD collection handling functions (based on

backend/beh.c

+7-1
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,15 @@
1919
* Include necessary headers.
2020
*/
2121

22-
#include "backend-private.h"
22+
#include <config.h>
23+
#include <cups/cups.h>
24+
#include <cups/backend.h>
2325
#include <cups/array.h>
2426
#include <ctype.h>
27+
#include <stdio.h>
28+
#include <signal.h>
29+
#include <string.h>
30+
#include <errno.h>
2531

2632
/*
2733
* Local globals...

backend/cups-brf.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,11 @@
2424
* THE SOFTWARE.
2525
*/
2626

27-
#include "backend-private.h"
27+
#include <cups/backend.h>
2828
#include <string.h>
2929
#include <errno.h>
3030
#include <stdio.h>
31+
#include <fcntl.h>
3132
#include <stdlib.h>
3233
#include <unistd.h>
3334
#include <sys/stat.h>

backend/implicitclass.c

+6-4
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,14 @@
2020
* Include necessary headers.
2121
*/
2222

23-
#include "backend-private.h"
24-
#include <cups/array.h>
25-
#include <ctype.h>
23+
#include <config.h>
24+
#include <cups/cups.h>
25+
#include <cups/backend.h>
2626
#include <cups/array.h>
2727
#include <ctype.h>
28-
#include <cups/cups.h>
28+
#include <stdio.h>
29+
#include <fcntl.h>
30+
#include <errno.h>
2931
#include <sys/types.h>
3032
#include <sys/wait.h>
3133
#include <cupsfilters/pdftoippprinter.h>

backend/parallel.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
* Include necessary headers.
2323
*/
2424

25-
#include "backend-private.h"
25+
#include <cupsfilters/ieee1284.h>
2626
#include <unistd.h>
2727
#include <fcntl.h>
2828
#include <termios.h>

backend/serial.c

+7-2
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,17 @@
2020
* Include necessary headers.
2121
*/
2222

23-
#include "backend-private.h"
23+
#include <config.h>
24+
#include <cups/cups.h>
25+
#include <cups/backend.h>
26+
#include <cups/sidechannel.h>
27+
#include <stdlib.h>
2428
#include <stdio.h>
25-
2629
#include <unistd.h>
2730
#include <fcntl.h>
2831
#include <termios.h>
32+
#include <errno.h>
33+
#include <signal.h>
2934
#include <sys/select.h>
3035
#ifdef HAVE_SYS_IOCTL_H
3136
# include <sys/ioctl.h>

backend/test1284.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
# include <fcntl.h>
2929
#endif /* WIN32 */
3030

31-
#include "backend-private.h"
31+
#include <cupsfilters/ieee1284.h>
3232

3333

3434
/*

backend/ieee1284.c cupsfilters/ieee1284.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* IEEE-1284 support functions for CUPS.
2+
* IEEE-1284 Device ID support functions for OpenPrinting CUPS Filters.
33
*
44
* Copyright 2007-2011 by Apple Inc.
55
* Copyright 1997-2007 by Easy Software Products, all rights reserved.
@@ -23,7 +23,7 @@
2323
* Include necessary headers.
2424
*/
2525

26-
#include "backend-private.h"
26+
#include "ieee1284.h"
2727
#include <cups/cups.h>
2828
#include <string.h>
2929
#include <ctype.h>

backend/backend-private.h cupsfilters/ieee1284.h

+4-6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Backend support definitions for OpenPrinting CUPS Filters.
2+
* IEEE1284 Device ID support definitions for OpenPrinting CUPS Filters.
33
*
44
* Copyright 2007-2011 by Apple Inc.
55
* Copyright 1997-2007 by Easy Software Products, all rights reserved.
@@ -10,8 +10,8 @@
1010
* which should have been included with this file.
1111
*/
1212

13-
#ifndef _CUPSFILTERS_BACKEND_PRIVATE_H_
14-
# define _CUPSFILTERS_BACKEND_PRIVATE_H_
13+
#ifndef _CUPSFILTERS_IEEE1284_H_
14+
# define _CUPSFILTERS_IEEE1284_H_
1515

1616

1717
/*
@@ -62,7 +62,6 @@ extern "C" {
6262
* Prototypes...
6363
*/
6464

65-
extern int backendDrainOutput(int print_fd, int device_fd);
6665
extern int backendGetDeviceID(int fd, char *device_id,
6766
int device_id_size,
6867
char *make_model,
@@ -77,5 +76,4 @@ extern int backendGetMakeModel(const char *device_id,
7776
# ifdef __cplusplus
7877
}
7978
# endif /* __cplusplus */
80-
#endif /* !_CUPSFILTERS_BACKEND_PRIVATE_H_ */
81-
79+
#endif /* !_CUPSFILTERS_IEEE1284_H_ */

0 commit comments

Comments
 (0)