2N/A/*
2N/A * GRUB -- GRand Unified Bootloader
2N/A * Copyright (c) 2010, 2012, Oracle and/or its affiliates. All rights reserved.
2N/A *
2N/A * GRUB is free software; you can redistribute it and/or modify
2N/A * it under the terms of the GNU General Public License as published by
2N/A * the Free Software Foundation; either version 3 of the License, or
2N/A * (at your option) any later version.
2N/A *
2N/A * GRUB is distributed in the hope that it will be useful,
2N/A * but WITHOUT ANY WARRANTY; without even the implied warranty of
2N/A * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2N/A * GNU General Public License for more details.
2N/A *
2N/A * You should have received a copy of the GNU General Public License
2N/A * along with GRUB. If not, see <http://www.gnu.org/licenses/>.
2N/A */
2N/A
2N/A#ifndef GRUB_UTIL_VERSION_HEADER
2N/A#define GRUB_UTIL_VERSION_HEADER 1
2N/A
2N/A/*
2N/A * grub_util_version_info describes associates a versioning scheme to
2N/A * its comparing function. compare() is expected to return 0 if the two
2N/A * passed versions coincide, more than 0 if the first version is more recent
2N/A * than the second and less than 0 otherwise. (basically, compare behaves
2N/A * like strcmp()).
2N/A */
2N/Astruct grub_util_version_info
2N/A{
2N/A char *versioning_scheme;
2N/A int (*compare)(const char *, const char *);
2N/A const char *static_version;
2N/A int compulsory; /* If both source and dest MUST be present */
2N/A};
2N/A
2N/A/* "solaris_version" handler. */
2N/Aextern struct grub_util_version_info grub_util_solaris_grub_version;
2N/A
2N/A#endif /* ! GRUB_UTIL_VERSION_HEADER */