Loading...
Searching...
No Matches
oval_cmp_evr_string_impl.h
Go to the documentation of this file.
/*
* Copyright 2009--2013 Red Hat Inc., Durham, North Carolina.
* All Rights Reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
* Authors:
* Šimon Lukašík
*/
#ifndef OSCAP_OVAL_EVR_STRING_IMPL_H_
#define OSCAP_OVAL_EVR_STRING_IMPL_H_
#include "../common/util.h"
#include "oval_definitions.h"
#include "oval_types.h"
oval_result_t oval_evr_string_cmp(const char *state, const char *sys, oval_operation_t operation);
oval_result_t oval_versiontype_cmp(const char *state, const char *syschar, oval_operation_t operation);
oval_result_t oval_debian_evr_string_cmp(const char *state, const char *sys, oval_operation_t operation);
/*
* Code copied from lib/dpkg/version.h
*/
struct dpkg_version {
unsigned int epoch;
const char *version;
const char *revision;
};
#endif
oval_operation_t
oval_operation_t
Operations.
Definition oval_definitions.h:84
oval_result_t
oval_result_t
Result values for the evaluation of an OVAL Definition or an OVAL Test.
Definition oval_types.h:445
oval_evr_string_cmp
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
oval_definitions.h
oval_types.h
dpkg_version
Definition oval_cmp_evr_string_impl.h:57
dpkg_version::epoch
unsigned int epoch
The epoch.
Definition oval_cmp_evr_string_impl.h:59
dpkg_version::version
const char * version
The upstream part of the version.
Definition oval_cmp_evr_string_impl.h:61
dpkg_version::revision
const char * revision
The Debian revision part of the version.
Definition oval_cmp_evr_string_impl.h:63