]> git.ipfire.org Git - thirdparty/cups.git/blame - scheduler/policy.h
Fix source file header text duplication text duplication.
[thirdparty/cups.git] / scheduler / policy.h
CommitLineData
ef416fc2 1/*
503b54c9 2 * Policy definitions for the CUPS scheduler.
ef416fc2 3 *
503b54c9
MS
4 * Copyright 2007-2010 by Apple Inc.
5 * Copyright 1997-2005 by Easy Software Products, all rights reserved.
ef416fc2 6 *
503b54c9
MS
7 * These coded instructions, statements, and computer programs are the
8 * property of Apple Inc. and are protected by Federal copyright
9 * law. Distribution and use rights are outlined in the file "LICENSE.txt"
10 * which should have been included with this file. If this file is
57b7b66b 11 * missing or damaged, see the license at "http://www.cups.org/".
ef416fc2 12 */
13
14
15/*
16 * Policy structure...
17 */
18
19typedef struct
20{
21 char *name; /* Policy name */
10d09e33
MS
22 cups_array_t *job_access, /* Private users/groups for jobs */
23 *job_attrs, /* Private attributes for jobs */
24 *sub_access, /* Private users/groups for subscriptions */
25 *sub_attrs, /* Private attributes for subscriptions */
26 *ops; /* Operations */
ef416fc2 27} cupsd_policy_t;
28
10d09e33
MS
29typedef struct cupsd_printer_s cupsd_printer_t;
30
ef416fc2 31
32/*
33 * Globals...
34 */
35
2e4ff8af 36VAR cups_array_t *Policies VALUE(NULL);
ef416fc2 37 /* Policies */
38
39
40/*
41 * Prototypes...
42 */
43
44extern cupsd_policy_t *cupsdAddPolicy(const char *policy);
45extern cupsd_location_t *cupsdAddPolicyOp(cupsd_policy_t *p,
46 cupsd_location_t *po,
47 ipp_op_t op);
48extern http_status_t cupsdCheckPolicy(cupsd_policy_t *p, cupsd_client_t *con,
49 const char *owner);
50extern void cupsdDeleteAllPolicies(void);
51extern cupsd_policy_t *cupsdFindPolicy(const char *policy);
52extern cupsd_location_t *cupsdFindPolicyOp(cupsd_policy_t *p, ipp_op_t op);
10d09e33
MS
53extern cups_array_t *cupsdGetPrivateAttrs(cupsd_policy_t *p,
54 cupsd_client_t *con,
55 cupsd_printer_t *printer,
56 const char *owner);