]> git.ipfire.org Git - thirdparty/cups.git/blame - scheduler/classes.h
More doco changes.
[thirdparty/cups.git] / scheduler / classes.h
CommitLineData
a129ddbd 1/*
b14d90ba 2 * "$Id: classes.h,v 1.5 1999/02/19 22:07:03 mike Exp $"
a129ddbd 3 *
fd8b1cf8 4 * Printer class definitions for the Common UNIX Printing System (CUPS).
a129ddbd 5 *
a9de544f 6 * Copyright 1997-1999 by Easy Software Products, all rights reserved.
a129ddbd 7 *
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
13 * at:
14 *
15 * Attn: CUPS Licensing Information
16 * Easy Software Products
17 * 44145 Airport View Drive, Suite 204
18 * Hollywood, Maryland 20636-3111 USA
19 *
20 * Voice: (301) 373-9603
21 * EMail: cups-info@cups.org
22 * WWW: http://www.cups.org
a129ddbd 23 */
24
a9de544f 25
26/*
27 * Class information structure...
28 */
29
30typedef struct class_str
31{
32 struct class_str *next; /* Next class in list */
a74b005d 33 char uri[HTTP_MAX_URI], /* Class URI */
b14d90ba 34 hostname[HTTP_MAX_HOST],/* Host class resides on */
35 name[IPP_MAX_NAME], /* Class name */
a74b005d 36 location[IPP_MAX_NAME], /* Location */
37 info[IPP_MAX_NAME], /* Description */
38 more_info[HTTP_MAX_URI];/* URL for site-specific info */
a9de544f 39 int num_printers; /* Number of printers in class */
40 printer_t **printers; /* Printers in class */
41} class_t;
42
43
44/*
45 * Globals...
46 */
47
48VAR class_t *Classes VALUE(NULL); /* List of printer classes... */
49
50
a129ddbd 51/*
a9de544f 52 * Prototypes...
53 */
54
55extern class_t *AddClass(char *name);
56extern void AddPrinterToClass(class_t *c, printer_t *p);
57extern void DeleteAllClasses(void);
58extern void DeleteClass(class_t *c);
59extern printer_t *FindAvailablePrinter(char *name);
60extern class_t *FindClass(char *name);
61extern void LoadAllClasses(void);
62extern void SaveAllClasses(void);
63
a129ddbd 64
65/*
b14d90ba 66 * End of "$Id: classes.h,v 1.5 1999/02/19 22:07:03 mike Exp $".
a129ddbd 67 */