]>
Commit | Line | Data |
---|---|---|
ef416fc2 | 1 | /* |
f7faf1f5 | 2 | * "$Id: policy.h 4871 2005-12-07 00:41:11Z mike $" |
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 | ||
31 | typedef 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 | ||
43 | VAR int NumPolicies VALUE(0); | |
44 | /* Number of policies */ | |
45 | VAR cupsd_policy_t **Policies VALUE(NULL); | |
46 | /* Policies */ | |
47 | ||
48 | ||
49 | /* | |
50 | * Prototypes... | |
51 | */ | |
52 | ||
53 | extern cupsd_policy_t *cupsdAddPolicy(const char *policy); | |
54 | extern cupsd_location_t *cupsdAddPolicyOp(cupsd_policy_t *p, | |
55 | cupsd_location_t *po, | |
56 | ipp_op_t op); | |
57 | extern http_status_t cupsdCheckPolicy(cupsd_policy_t *p, cupsd_client_t *con, | |
58 | const char *owner); | |
59 | extern void cupsdDeleteAllPolicies(void); | |
60 | extern cupsd_policy_t *cupsdFindPolicy(const char *policy); | |
61 | extern cupsd_location_t *cupsdFindPolicyOp(cupsd_policy_t *p, ipp_op_t op); | |
62 | ||
63 | ||
64 | /* | |
f7faf1f5 | 65 | * End of "$Id: policy.h 4871 2005-12-07 00:41:11Z mike $". |
ef416fc2 | 66 | */ |