Open SCAP Library: entcmp.h Source File

Open SCAP Library

- Main Page
- Related Pages
- Modules
- Data Structures
- Files

- File List
- Globals

entcmp.h
Go to the documentation of this file.
1
8 /*
9 * Copyright 2009 Red Hat Inc., Durham, North Carolina.
10 * All Rights Reserved.
11 *
12 * This library is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU Lesser General Public
14 * License as published by the Free Software Foundation; either
15 * version 2.1 of the License, or (at your option) any later version.
16 *
17 * This library is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 * Lesser General Public License for more details.
21 *
22 * You should have received a copy of the GNU Lesser General Public
23 * License along with this library; if not, write to the Free Software
24 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25 *
26 * Authors:
27 * Tomas Heinrich <theinric@redhat.com>
28 */
29
30 #ifndef PROBE_ENTCMP_H
31 #define PROBE_ENTCMP_H
32
33 #include <seap.h>
34 #include <stdarg.h>
35 #include "oval_definitions.h"
36 #include "oval_results.h"
37
44 oval_result_t probe_ent_result_bychk(SEXP_t * res_lst, oval_check_t check);
45
52 oval_result_t probe_ent_result_byopr(SEXP_t * res_lst, oval_operator_t operator);
53
61 oval_result_t probe_entobj_cmp(SEXP_t * ent_obj, SEXP_t * val);
62
70 oval_result_t probe_entste_cmp(SEXP_t * ent_ste, SEXP_t * ent_itm);
71
79 oval_result_t probe_ent_cmp_binary(SEXP_t * val1, SEXP_t * val2, oval_operation_t op);
80
88 oval_result_t probe_ent_cmp_bool(SEXP_t * val1, SEXP_t * val2, oval_operation_t op);
89
97 oval_result_t probe_ent_cmp_evr(SEXP_t * val1, SEXP_t * val2, oval_operation_t op);
98
106 oval_result_t probe_ent_cmp_debian_evr(SEXP_t * val1, SEXP_t * val2, oval_operation_t op);
107
115 oval_result_t probe_ent_cmp_filesetrev(SEXP_t * val1, SEXP_t * val2, oval_operation_t op);
116
124 oval_result_t probe_ent_cmp_float(SEXP_t * val1, SEXP_t * val2, oval_operation_t op);
125
133 oval_result_t probe_ent_cmp_int(SEXP_t * val1, SEXP_t * val2, oval_operation_t op);
134
142 oval_result_t probe_ent_cmp_ios(SEXP_t * val1, SEXP_t * val2, oval_operation_t op);
143
151 oval_result_t probe_ent_cmp_version(SEXP_t * val1, SEXP_t * val2, oval_operation_t op);
152
160 oval_result_t probe_ent_cmp_string(SEXP_t * val1, SEXP_t * val2, oval_operation_t op);
161
162 #endif
163
oval_operator_t
oval_operator_t
Boolean operators.
Definition: oval_definitions.h:75
oval_operation_t
oval_operation_t
Operations.
Definition: oval_definitions.h:84
probe_ent_cmp_binary
oval_result_t probe_ent_cmp_binary(SEXP_t *val1, SEXP_t *val2, oval_operation_t op)
Compare two binary values.
Definition: entcmp.c:53
probe_ent_cmp_int
oval_result_t probe_ent_cmp_int(SEXP_t *val1, SEXP_t *val2, oval_operation_t op)
Compare two integer values.
Definition: entcmp.c:119
probe_ent_cmp_debian_evr
oval_result_t probe_ent_cmp_debian_evr(SEXP_t *val1, SEXP_t *val2, oval_operation_t op)
Compare two Debian epoch-version-release values.
Definition: entcmp.c:92
probe_ent_cmp_version
oval_result_t probe_ent_cmp_version(SEXP_t *val1, SEXP_t *val2, oval_operation_t op)
Compare two version values.
Definition: entcmp.c:141
oval_check_t
oval_check_t
Check enumeration.
Definition: oval_definitions.h:113
probe_ent_cmp_evr
oval_result_t probe_ent_cmp_evr(SEXP_t *val1, SEXP_t *val2, oval_operation_t op)
Compare two epoch-version-release values.
Definition: entcmp.c:79
probe_ent_cmp_ios
oval_result_t probe_ent_cmp_ios(SEXP_t *val1, SEXP_t *val2, oval_operation_t op)
Compare two ios values.
Definition: entcmp.c:132
probe_ent_cmp_bool
oval_result_t probe_ent_cmp_bool(SEXP_t *val1, SEXP_t *val2, oval_operation_t op)
Compare two boolean values.
Definition: entcmp.c:69
probe_entobj_cmp
oval_result_t probe_entobj_cmp(SEXP_t *ent_obj, SEXP_t *val)
Compare object entity's content with a value.
Definition: entcmp.c:431
probe_entste_cmp
oval_result_t probe_entste_cmp(SEXP_t *ent_ste, SEXP_t *ent_itm)
Compare state entity's content with a item entity's value.
Definition: entcmp.c:391
probe_ent_cmp_string
oval_result_t probe_ent_cmp_string(SEXP_t *val1, SEXP_t *val2, oval_operation_t op)
Compare two string values.
Definition: entcmp.c:153
oval_result_t
oval_result_t
Result values for the evaluation of an OVAL Definition or an OVAL Test.
Definition: oval_types.h:327
probe_ent_result_bychk
oval_result_t probe_ent_result_bychk(SEXP_t *res_lst, oval_check_t check)
Compute the overall result.
Definition: entcmp.c:494
SEXP
Definition: sexp-types.h:82
oval_definitions.h
probe_ent_cmp_filesetrev
oval_result_t probe_ent_cmp_filesetrev(SEXP_t *val1, SEXP_t *val2, oval_operation_t op)
Compare two values.
Definition: entcmp.c:100
oval_results.h
probe_ent_cmp_float
oval_result_t probe_ent_cmp_float(SEXP_t *val1, SEXP_t *val2, oval_operation_t op)
Compare two floating point values.
Definition: entcmp.c:109
probe_ent_result_byopr
oval_result_t probe_ent_result_byopr(SEXP_t *res_lst, oval_operator_t operator)
Compute the overall result.
Definition: entcmp.c:583