]>
Commit | Line | Data |
---|---|---|
ef416fc2 | 1 | /* |
bc44d920 | 2 | * "$Id: policy.h 6649 2007-07-11 21:46:42Z mike $" |
ef416fc2 | 3 | * |
4 | * Policy definitions for the Common UNIX Printing System (CUPS) | |
5 | * scheduler. | |
6 | * | |
bc44d920 | 7 | * Copyright 2007 by Apple Inc. |
ef416fc2 | 8 | * Copyright 1997-2005 by Easy Software Products, all rights reserved. |
9 | * | |
10 | * These coded instructions, statements, and computer programs are the | |
bc44d920 | 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/". | |
ef416fc2 | 15 | */ |
16 | ||
17 | ||
18 | /* | |
19 | * Policy structure... | |
20 | */ | |
21 | ||
22 | typedef struct | |
23 | { | |
24 | char *name; /* Policy name */ | |
25 | int num_ops; /* Number of operations */ | |
26 | cupsd_location_t **ops; /* Operations */ | |
27 | } cupsd_policy_t; | |
28 | ||
29 | ||
30 | /* | |
31 | * Globals... | |
32 | */ | |
33 | ||
34 | VAR int NumPolicies VALUE(0); | |
35 | /* Number of policies */ | |
36 | VAR cupsd_policy_t **Policies VALUE(NULL); | |
37 | /* Policies */ | |
38 | ||
39 | ||
40 | /* | |
41 | * Prototypes... | |
42 | */ | |
43 | ||
44 | extern cupsd_policy_t *cupsdAddPolicy(const char *policy); | |
45 | extern cupsd_location_t *cupsdAddPolicyOp(cupsd_policy_t *p, | |
46 | cupsd_location_t *po, | |
47 | ipp_op_t op); | |
48 | extern http_status_t cupsdCheckPolicy(cupsd_policy_t *p, cupsd_client_t *con, | |
49 | const char *owner); | |
50 | extern void cupsdDeleteAllPolicies(void); | |
51 | extern cupsd_policy_t *cupsdFindPolicy(const char *policy); | |
52 | extern cupsd_location_t *cupsdFindPolicyOp(cupsd_policy_t *p, ipp_op_t op); | |
53 | ||
54 | ||
55 | /* | |
bc44d920 | 56 | * End of "$Id: policy.h 6649 2007-07-11 21:46:42Z mike $". |
ef416fc2 | 57 | */ |