]>
git.ipfire.org Git - thirdparty/cups.git/blob - cups/backend.c
2 * "$Id: backend.c 5024 2006-01-29 14:58:15Z mike $"
4 * Backend functions for the Common UNIX Printing System (CUPS).
6 * Copyright 2006 by Easy Software Products.
8 * These coded instructions, statements, and computer programs are the
9 * property of Easy Software Products and are protected by Federal
10 * copyright law. Distribution and use rights are outlined in the file
11 * "LICENSE.txt" which should have been included with this file. If this
12 * file is missing or damaged please contact Easy Software Products
15 * Attn: CUPS Licensing Information
16 * Easy Software Products
17 * 44141 Airport View Drive, Suite 204
18 * Hollywood, Maryland 20636 USA
20 * Voice: (301) 373-9600
21 * EMail: cups-info@cups.org
22 * WWW: http://www.cups.org
24 * This file is subject to the Apple OS-Developed Software exception.
28 * cupsBackendDeviceURI() - Get the device URI for a backend.
32 * Include necessary headers...
41 * 'cupsBackendDeviceURI()' - Get the device URI for a backend.
43 * The "argv" argument is the argv argument passed to main(). This
44 * function returns the device URI passed in the DEVICE_URI environment
45 * variable or the device URI passed in argv[0], whichever is found
49 const char * /* O - Device URI or NULL */
50 cupsBackendDeviceURI(char **argv
) /* I - Command-line arguments */
52 const char *device_uri
; /* Device URI */
55 if ((device_uri
= getenv("DEVICE_URI")) != NULL
)
58 if (!argv
|| !argv
[0] || !strchr(argv
[0], ':'))
66 * End of "$Id: backend.c 5024 2006-01-29 14:58:15Z mike $".