]> git.ipfire.org Git - thirdparty/cups.git/blame - scheduler/policy.h
Remove svn:keywords since they cause svn_load_dirs.pl to complain about every file.
[thirdparty/cups.git] / scheduler / policy.h
CommitLineData
ef416fc2 1/*
c07d5b2d 2 * "$Id: policy.h 177 2006-06-21 00:20:03Z jlovell $"
ef416fc2 3 *
4 * Policy definitions for the Common UNIX Printing System (CUPS)
5 * scheduler.
6 *
7 * Copyright 1997-2005 by Easy Software Products, all rights reserved.
8 *
9 * These coded instructions, statements, and computer programs are the
10 * property of Easy Software Products and are protected by Federal
11 * copyright law. Distribution and use rights are outlined in the file
12 * "LICENSE.txt" which should have been included with this file. If this
13 * file is missing or damaged please contact Easy Software Products
14 * at:
15 *
16 * Attn: CUPS Licensing Information
17 * Easy Software Products
18 * 44141 Airport View Drive, Suite 204
19 * Hollywood, Maryland 20636 USA
20 *
21 * Voice: (301) 373-9600
22 * EMail: cups-info@cups.org
23 * WWW: http://www.cups.org
24 */
25
26
27/*
28 * Policy structure...
29 */
30
31typedef struct
32{
33 char *name; /* Policy name */
34 int num_ops; /* Number of operations */
35 cupsd_location_t **ops; /* Operations */
36} cupsd_policy_t;
37
38
39/*
40 * Globals...
41 */
42
43VAR int NumPolicies VALUE(0);
44 /* Number of policies */
45VAR cupsd_policy_t **Policies VALUE(NULL);
46 /* Policies */
47
48
49/*
50 * Prototypes...
51 */
52
53extern cupsd_policy_t *cupsdAddPolicy(const char *policy);
54extern cupsd_location_t *cupsdAddPolicyOp(cupsd_policy_t *p,
55 cupsd_location_t *po,
56 ipp_op_t op);
57extern http_status_t cupsdCheckPolicy(cupsd_policy_t *p, cupsd_client_t *con,
58 const char *owner);
59extern void cupsdDeleteAllPolicies(void);
60extern cupsd_policy_t *cupsdFindPolicy(const char *policy);
61extern cupsd_location_t *cupsdFindPolicyOp(cupsd_policy_t *p, ipp_op_t op);
62
63
64/*
c07d5b2d 65 * End of "$Id: policy.h 177 2006-06-21 00:20:03Z jlovell $".
ef416fc2 66 */