Re: Issue with adminutil.h Removal in libcups3

Michael Sweet <[email protected]> Sun, 23 Mar 2025 11:02:02 -0400
Newsgroups dev.linux.lists.printing-architecture
Message-ID <[email protected]>
Tarun,

> On Mar 23, 2025, at 5:14=E2=80=AFAM, Tarun srivastava =
<[email protected]> wrote:
>=20
> Hi Maintainers,
>=20
> I=E2=80=99m working on porting the KDE Print Manager from CUPS 2.x =
APIs to
> CUPS 3.x APIs and have encountered an issue related to libcups3
> functions and macros.
>=20
> Currently, KDE relies on the macros and functions from adminutil.h to
> interact with the CUPS server and later use this result in UI
> components. However, since adminutil.h has been removed from libcups3,
> I=E2=80=99m unsure how to proceed.
>=20
> Could you guide me on how to interact with the CUPS server without =
adminutil.h?

CUPS 3.x changes a lot of the assumptions people have made about how =
CUPS (and printing) works.

*Most* users will only ever use/interact with cupslocald, the per-user =
print spooler which will have very limited configuration options - =
basically just "configuration profiles" to supplement mDNS/DNS-SD =
discovery.

The sharing server (cupssharingd) will likely have a configuration file, =
but mainly for things that are currently in cups-files.conf.  Other =
configurable things will be accessible via IPP operations.

So the short answer is: adminutil.h is only for CUPS 2.x and earlier.

________________________
Michael Sweet