Open SCAP Library
Loading...
Searching...
No Matches
oval_cmp_evr_string_impl.h
Go to the documentation of this file.
1
8/*
9 * Copyright 2009--2013 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
25 *
26 * Authors:
27 * Šimon Lukašík
28 */
29
30#ifndef OSCAP_OVAL_EVR_STRING_IMPL_H_
31#define OSCAP_OVAL_EVR_STRING_IMPL_H_
32
33#include "../common/util.h"
34
35#include "oval_definitions.h"
36#include "oval_types.h"
37
38
48oval_result_t oval_evr_string_cmp(const char *state, const char *sys, oval_operation_t operation);
49
50oval_result_t oval_versiontype_cmp(const char *state, const char *syschar, oval_operation_t operation);
51
52oval_result_t oval_debian_evr_string_cmp(const char *state, const char *sys, oval_operation_t operation);
53
54/*
55 * Code copied from lib/dpkg/version.h
56 */
59 unsigned int epoch;
61 const char *version;
63 const char *revision;
64};
65
66#endif
oval_operation_t
Operations.
Definition oval_definitions.h:84
oval_result_t
Result values for the evaluation of an OVAL Definition or an OVAL Test.
Definition oval_types.h:445
oval_result_t oval_evr_string_cmp(const char *state, const char *sys, oval_operation_t operation)
Compare two EVR (Epoch:Version-Release) strings.
Definition oval_cmp_evr_string.c:64
Definition oval_cmp_evr_string_impl.h:57
unsigned int epoch
The epoch.
Definition oval_cmp_evr_string_impl.h:59
const char * version
The upstream part of the version.
Definition oval_cmp_evr_string_impl.h:61
const char * revision
The Debian revision part of the version.
Definition oval_cmp_evr_string_impl.h:63