]>
git.ipfire.org Git - thirdparty/cups.git/blob - scheduler/policy.h
2 * "$Id: policy.h 6649 2007-07-11 21:46:42Z mike $"
4 * Policy definitions for the Common UNIX Printing System (CUPS)
7 * Copyright 2007 by Apple Inc.
8 * Copyright 1997-2005 by Easy Software Products, all rights reserved.
10 * These coded instructions, statements, and computer programs are the
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/".
24 char *name
; /* Policy name */
25 int num_ops
; /* Number of operations */
26 cupsd_location_t
**ops
; /* Operations */
34 VAR
int NumPolicies
VALUE(0);
35 /* Number of policies */
36 VAR cupsd_policy_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
);
56 * End of "$Id: policy.h 6649 2007-07-11 21:46:42Z mike $".