]> git.ipfire.org Git - thirdparty/cups.git/blob - scheduler/policy.h
Import CUPS 1.4svn r7023 into easysw/current.
[thirdparty/cups.git] / scheduler / policy.h
1 /*
2 * "$Id: policy.h 6895 2007-08-30 00:09:27Z mike $"
3 *
4 * Policy definitions for the Common UNIX Printing System (CUPS)
5 * scheduler.
6 *
7 * Copyright 2007 by Apple Inc.
8 * Copyright 1997-2005 by Easy Software Products, all rights reserved.
9 *
10 * These coded instructions, statements, and computer programs are the
11 * property of Apple Inc. and are protected by Federal copyright
12 * law. Distribution and use rights are outlined in the file "LICENSE.txt"
13 * which should have been included with this file. If this file is
14 * file is missing or damaged, see the license at "http://www.cups.org/".
15 */
16
17
18 /*
19 * Policy structure...
20 */
21
22 typedef struct
23 {
24 char *name; /* Policy name */
25 cups_array_t *ops; /* Operations */
26 } cupsd_policy_t;
27
28
29 /*
30 * Globals...
31 */
32
33 VAR cups_array_t *Policies VALUE(NULL);
34 /* Policies */
35
36
37 /*
38 * Prototypes...
39 */
40
41 extern cupsd_policy_t *cupsdAddPolicy(const char *policy);
42 extern cupsd_location_t *cupsdAddPolicyOp(cupsd_policy_t *p,
43 cupsd_location_t *po,
44 ipp_op_t op);
45 extern http_status_t cupsdCheckPolicy(cupsd_policy_t *p, cupsd_client_t *con,
46 const char *owner);
47 extern void cupsdDeleteAllPolicies(void);
48 extern cupsd_policy_t *cupsdFindPolicy(const char *policy);
49 extern cupsd_location_t *cupsdFindPolicyOp(cupsd_policy_t *p, ipp_op_t op);
50
51
52 /*
53 * End of "$Id: policy.h 6895 2007-08-30 00:09:27Z mike $".
54 */