Skip to content

Commit e223067

Browse files
committed
cpdb-backend-cups 2.0b6 Release
1 parent db3ff14 commit e223067

File tree

3 files changed

+49
-2
lines changed

3 files changed

+49
-2
lines changed

CHANGES.md

+46-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,49 @@
1-
# CHANGES - Common Print Dialog Backends - CUPS Backend - v2.0b5 - 2023-08-02
1+
# CHANGES - Common Print Dialog Backends - CUPS Backend - v2.0b6 - 2024-06-18
2+
3+
## CHANGES IN V2.0b6 (18th June 2024)
4+
5+
- Stream print data through a Unix domain socket
6+
To ease making a Snap from the CPDB backend for CUPS we now transfer
7+
the print job data from the dialog to the backend via a Unix domain
8+
socket and not by dropping the data into a file (PR #28).
9+
10+
- Let the frontend not be a D-Bus service, only the backends
11+
To control hiding temporary or remote printers in the backend's
12+
printer list we have added methods to the D-Bus service provided by
13+
the backends now. Before, the frontends were also D-Bus services
14+
just to send signals to the backends for controling the filtering
15+
(PR #29).
16+
17+
- Unified logging. Always use log...() functions (PR #29).
18+
19+
- Updated names of some CUPS constants to CUPS 2.5.x and newer (PR #28).
20+
21+
- Removed the backend functions for get-all-jobs(),
22+
get_active_jobs_count(), and cancel_job() (PR #28).
23+
24+
- Removed tryPPD(), a useless, PPD-related function
25+
This function logs the options in the PPD of the CUPS queue but does
26+
nothing else. PPDs will also go away in CUPS 3.x, so we want the CUPS
27+
backend not depend on PPDs or PPD-supporting functions/libraries (PR #29).
28+
29+
- send_printer_state_changed_signal(): Send correct signal
30+
Send CPDB_SIGNAL_PRINTER_STATE_CHANGED, not
31+
CPDB_SIGNAL_PRINTER_REMOVED (#29).
32+
33+
- Let "dialog_name" always be "const char *", to eliminate warnings (PR #29).
34+
35+
- Added NULL checks for the functions dealing with dialogs
36+
37+
- Build test: Give more time (3 instead of 1 sec) for the print job
38+
submission before closing the backend, to get note of the
39+
confirmation of successful submission (PR #28).
40+
41+
- Build test: Let CPDB frontend and backend log in debug mode (PR #28).
42+
43+
- Build test: Create the directory for the socket files (PR #28).
44+
45+
- Updated build test for removal of backend info file
46+
247

348
## CHANGES IN V2.0b5 (2nd August 2023)
449

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ The backend is auto-activated when a frontend (like a CPDB-supporting print dial
4141

4242
However, if you wish to see the debug statements in the backend code, you can run `/usr/local/lib/print-backends/cups`
4343

44+
NOTE: The communication protocol between frontends and backends has changed (Job data streaming via domain socket, printer list filteringvia D-Bus methods). Therefore use this backend only with frontends based on cpdb-libs of at least version 2.0b6.
45+
4446
## More Info
4547

4648
- [Nilanjana Lodh's Google Summer of Code 2017 Final Report](https://nilanjanalodh.github.io/common-print-dialog-gsoc17/)

configure.ac

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Process this file with autoconf to produce a configure script.
33

44
AC_PREREQ([2.69])
5-
AC_INIT([cpdb-backend-cups], [2.0b5], [https://github.com/OpenPrinting/cpdb-backend-cups/issues/], [cpdb-backend-cups], [https://github.com/OpenPrinting/cpdb-backend-cups])
5+
AC_INIT([cpdb-backend-cups], [2.0b6], [https://github.com/OpenPrinting/cpdb-backend-cups/issues/], [cpdb-backend-cups], [https://github.com/OpenPrinting/cpdb-backend-cups])
66
AC_CONFIG_AUX_DIR([build-aux])
77
AC_CONFIG_SRCDIR([src/print_backend_cups.c])
88
AM_INIT_AUTOMAKE([-Wall dist-xz dist-bzip2 foreign])

0 commit comments

Comments
 (0)