Debian Codegraph @

src/XCCDF_POLICY/xccdf_policy_model_priv.h

raw symbols SCIP
1 /*
2 * Copyright 2014--2016 Red Hat Inc., Durham, North Carolina.
3 * All Rights Reserved.
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 *
19 * Authors:
20 * Simon Lukasik <[email protected]>
21 *
22 */
23
24 #pragma once
25 #ifndef _OSCAP_XCCDF_POLICY_MODEL_PRIV_H
26 #define _OSCAP_XCCDF_POLICY_MODEL_PRIV_Hcxx . . $ `src/XCCDF_POLICY/xccdf_policy_model_priv.h:26:9`!
27
28 #include "common/util.h"cxx . . $ `<file>/src/common/util.h`/
29 #include "CPE/cpe_session_priv.h"cxx . . $ `<file>/src/CPE/cpe_session_priv.h`/
30 #include "public/xccdf_policy.h"cxx . . $ `<file>/src/XCCDF_POLICY/public/xccdf_policy.h`/
31
32
33 #define XCCDF_POLICY_OUTCB_STARTcxx . . $ `src/XCCDF_POLICY/xccdf_policy_model_priv.h:33:9`! "urn:xccdf:system:callback:start"
34 #define XCCDF_POLICY_OUTCB_ENDcxx . . $ `src/XCCDF_POLICY/xccdf_policy_model_priv.h:34:9`! "urn:xccdf:system:callback:output"
35 #define XCCDF_POLICY_OUTCB_MULTICHECKcxx . . $ `src/XCCDF_POLICY/xccdf_policy_model_priv.h:35:9`! "urn:xccdf:system:callback:multicheck"
36
37 /**
38 * Remove checking engines with given system from xccdf_policy_model
39 * @memberof xccdf_policy_model
40 * @param model XCCDF Policy Model
41 * @param sys sytem name of the callback
42 */
43 void xccdf_policy_model_unregister_enginescxx . . $ xccdf_policy_model_unregister_engines(7c84e7be56876a5f).(struct xccdf_policy_modelcxx . . $ xccdf_policy_model# *model, const char *sys);
44
45 /**
46 * Query whether the given list platforms qualifies as 'applicable'. When considering
47 * policy_model CPE settings in the given policy model
48 * @memberof xccdf_policy_model
49 * @param model XCCDF Policy Model
50 * @param platforms list of CPE platform identifiers
51 * @returns true if the list of platforms qualifies as 'applicable'
52 */
53 boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! xccdf_policy_model_platforms_are_applicablecxx . . $ xccdf_policy_model_platforms_are_applicable(248655e41eddd5a).(struct xccdf_policy_modelcxx . . $ xccdf_policy_model# *model, struct oscap_string_iteratorcxx . . $ oscap_string_iterator# *platforms);
54
55 /**
56 * Query whether the given item is applicable within given policy
57 * @memberof xccdf_policy_model
58 * @param model XCCDF Policy Model
59 * @param item XCCDF Item
60 * @returns true if the given item is applicable
61 */
62 boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! xccdf_policy_model_item_is_applicablecxx . . $ xccdf_policy_model_item_is_applicable(a3677b735ed6bb27).(struct xccdf_policy_modelcxx . . $ xccdf_policy_model# *model, struct xccdf_itemcxx . . $ xccdf_item# *item);
63
64 /**
65 * Get CPE session assigned with the XCCDF Policy Model
66 * @memberof xccdf_policy_model
67 * @param model XCCDF Policy Model
68 * @returns cpe_session or NULL
69 */
70 struct cpe_sessioncxx . . $ cpe_session# *xccdf_policy_model_get_cpe_sessioncxx . . $ xccdf_policy_model_get_cpe_session(cfdce5f2ac9d5b55).(struct xccdf_policy_modelcxx . . $ xccdf_policy_model# *model);
71
72 struct xccdf_policycxx . . $ xccdf_policy# *xccdf_policy_model_get_existing_policy_by_idcxx . . $ xccdf_policy_model_get_existing_policy_by_id(3a48227fe1c1225a).(struct xccdf_policy_modelcxx . . $ xccdf_policy_model# *policy_model, const char *profile_id);
73
74 struct xccdf_policycxx . . $ xccdf_policy# *xccdf_policy_model_create_policy_by_idcxx . . $ xccdf_policy_model_create_policy_by_id(3a48227fe1c1225a).(struct xccdf_policy_modelcxx . . $ xccdf_policy_model# *policy_model, const char *id);
75
76
77 #endif