Blame src/evr.h

Packit 54873f
/*
Packit 54873f
 * Copyright (c) 2007, Novell Inc.
Packit 54873f
 *
Packit 54873f
 * This program is licensed under the BSD license, read LICENSE.BSD
Packit 54873f
 * for further information
Packit 54873f
 */
Packit 54873f
Packit 54873f
/*
Packit 54873f
 * evr.h
Packit 54873f
 *
Packit 54873f
 */
Packit 54873f
Packit 54873f
#ifndef LIBSOLV_EVR_H
Packit 54873f
#define LIBSOLV_EVR_H
Packit 54873f
Packit 54873f
#ifdef __cplusplus
Packit 54873f
extern "C" {
Packit 54873f
#endif
Packit 54873f
Packit 54873f
#include "pooltypes.h"
Packit 54873f
Packit 54873f
#define EVRCMP_COMPARE			0
Packit 54873f
#define EVRCMP_MATCH_RELEASE		1
Packit 54873f
#define EVRCMP_MATCH			2
Packit 54873f
#define EVRCMP_COMPARE_EVONLY		3
Packit 54873f
Packit 54873f
extern int solv_vercmp(const char *s1, const char *q1, const char *s2, const char *q2);
Packit 54873f
Packit 54873f
extern int pool_evrcmp_str(const Pool *pool, const char *evr1, const char *evr2, int mode);
Packit 54873f
extern int pool_evrcmp(const Pool *pool, Id evr1id, Id evr2id, int mode);
Packit 54873f
extern int pool_evrmatch(const Pool *pool, Id evrid, const char *epoch, const char *version, const char *release);
Packit 54873f
Packit 54873f
#ifdef __cplusplus
Packit 54873f
}
Packit 54873f
#endif
Packit 54873f
Packit 54873f
#endif /* LIBSOLV_EVR_H */