2 * Policy definitions for the CUPS scheduler.
4 * Copyright 2007-2010 by Apple Inc.
5 * Copyright 1997-2005 by Easy Software Products, all rights reserved.
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
11 * file is missing or damaged, see the license at "http://www.cups.org/".
21 char *name
; /* Policy name */
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 */
29 typedef struct cupsd_printer_s cupsd_printer_t
;
36 VAR cups_array_t
*Policies
VALUE(NULL
);
44 extern cupsd_policy_t
*cupsdAddPolicy(const char *policy
);
45 extern cupsd_location_t
*cupsdAddPolicyOp(cupsd_policy_t
*p
,
48 extern http_status_t
cupsdCheckPolicy(cupsd_policy_t
*p
, cupsd_client_t
*con
,
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 extern cups_array_t
*cupsdGetPrivateAttrs(cupsd_policy_t
*p
,
55 cupsd_printer_t
*printer
,