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 * Licensed under Apache License v2.0. See the file "LICENSE" for more information.
17 char *name
; /* Policy name */
18 cups_array_t
*job_access
, /* Private users/groups for jobs */
19 *job_attrs
, /* Private attributes for jobs */
20 *sub_access
, /* Private users/groups for subscriptions */
21 *sub_attrs
, /* Private attributes for subscriptions */
22 *ops
; /* Operations */
25 typedef struct cupsd_printer_s cupsd_printer_t
;
32 VAR cups_array_t
*Policies
VALUE(NULL
);
40 extern cupsd_policy_t
*cupsdAddPolicy(const char *policy
);
41 extern cupsd_location_t
*cupsdAddPolicyOp(cupsd_policy_t
*p
,
44 extern http_status_t
cupsdCheckPolicy(cupsd_policy_t
*p
, cupsd_client_t
*con
,
46 extern void cupsdDeleteAllPolicies(void);
47 extern cupsd_policy_t
*cupsdFindPolicy(const char *policy
);
48 extern cupsd_location_t
*cupsdFindPolicyOp(cupsd_policy_t
*p
, ipp_op_t op
);
49 extern cups_array_t
*cupsdGetPrivateAttrs(cupsd_policy_t
*p
,
51 cupsd_printer_t
*printer
,