2012-11-02 15:04:25 +01:00
|
|
|
/*-
|
2020-04-24 11:44:19 +02:00
|
|
|
* Licensed under the SPDX BSD-2-Clause identifier.
|
|
|
|
* Use is subject to license terms, as specified in the LICENSE file.
|
2012-11-02 15:04:25 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _XBPS_PKGDB_DEFS_H_
|
|
|
|
#define _XBPS_PKGDB_DEFS_H_
|
|
|
|
|
|
|
|
#include <sys/time.h>
|
2013-06-20 12:31:02 +02:00
|
|
|
#include <xbps.h>
|
2012-11-02 15:04:25 +01:00
|
|
|
|
|
|
|
/* from check.c */
|
2013-06-20 10:26:12 +02:00
|
|
|
int check_pkg_integrity(struct xbps_handle *, xbps_dictionary_t, const char *);
|
2012-11-02 15:04:25 +01:00
|
|
|
int check_pkg_integrity_all(struct xbps_handle *);
|
|
|
|
|
|
|
|
#define CHECK_PKG_DECL(type) \
|
2012-11-17 17:43:54 +01:00
|
|
|
int check_pkg_##type (struct xbps_handle *, const char *, void *)
|
2012-11-02 15:04:25 +01:00
|
|
|
|
|
|
|
CHECK_PKG_DECL(unneeded);
|
|
|
|
CHECK_PKG_DECL(files);
|
|
|
|
CHECK_PKG_DECL(rundeps);
|
|
|
|
CHECK_PKG_DECL(symlinks);
|
2019-03-13 14:51:37 +01:00
|
|
|
CHECK_PKG_DECL(alternatives);
|
2012-11-02 15:04:25 +01:00
|
|
|
|
2012-11-16 16:55:35 +01:00
|
|
|
/* from convert.c */
|
2013-03-05 04:08:42 +01:00
|
|
|
void convert_pkgdb_format(struct xbps_handle *);
|
2012-11-16 16:55:35 +01:00
|
|
|
|
2012-11-02 15:04:25 +01:00
|
|
|
#endif /* !_XBPS_PKGDB_DEFS_H_ */
|