]>
git.ipfire.org Git - thirdparty/cups.git/blob - cups/backend.c
2 * "$Id: backend.c 6649 2007-07-11 21:46:42Z mike $"
4 * Backend functions for the Common UNIX Printing System (CUPS).
6 * Copyright 2007 by Apple Inc.
7 * Copyright 2006 by Easy Software Products.
9 * These coded instructions, statements, and computer programs are the
10 * property of Apple Inc. and are protected by Federal copyright
11 * law. Distribution and use rights are outlined in the file "LICENSE.txt"
12 * which should have been included with this file. If this file is
13 * file is missing or damaged, see the license at "http://www.cups.org/".
15 * This file is subject to the Apple OS-Developed Software exception.
19 * cupsBackendDeviceURI() - Get the device URI for a backend.
23 * Include necessary headers...
32 * 'cupsBackendDeviceURI()' - Get the device URI for a backend.
34 * The "argv" argument is the argv argument passed to main(). This
35 * function returns the device URI passed in the DEVICE_URI environment
36 * variable or the device URI passed in argv[0], whichever is found
40 const char * /* O - Device URI or NULL */
41 cupsBackendDeviceURI(char **argv
) /* I - Command-line arguments */
43 const char *device_uri
; /* Device URI */
46 if ((device_uri
= getenv("DEVICE_URI")) != NULL
)
49 if (!argv
|| !argv
[0] || !strchr(argv
[0], ':'))
57 * End of "$Id: backend.c 6649 2007-07-11 21:46:42Z mike $".