27#ifndef _XBPS_API_IMPL_H_
28#define _XBPS_API_IMPL_H_
39#define HIDDEN __attribute__ ((visibility("hidden")))
48#define __UNCONST(a) ((void *)(uintptr_t)(const void *)(a))
52#define __arraycount(x) (sizeof(x) / sizeof(*x))
60int HIDDEN dewey_match(
const char *,
const char *);
62void HIDDEN xbps_pkgdb_release(
struct xbps_handle *);
63int HIDDEN xbps_pkgdb_conversion(
struct xbps_handle *);
64int HIDDEN xbps_array_replace_dict_by_name(xbps_array_t, xbps_dictionary_t,
66int HIDDEN xbps_array_replace_dict_by_pattern(xbps_array_t, xbps_dictionary_t,
68bool HIDDEN xbps_remove_pkg_from_array_by_name(xbps_array_t,
const char *);
69bool HIDDEN xbps_remove_pkg_from_array_by_pattern(xbps_array_t,
const char *);
70bool HIDDEN xbps_remove_pkg_from_array_by_pkgver(xbps_array_t,
const char *);
71void HIDDEN xbps_fetch_set_cache_connection(
int,
int);
72void HIDDEN xbps_fetch_unset_cache_connection(
void);
73int HIDDEN xbps_entry_is_a_conf_file(xbps_dictionary_t,
const char *);
74int HIDDEN xbps_entry_install_conf_file(
struct xbps_handle *, xbps_dictionary_t,
75 xbps_dictionary_t,
struct archive_entry *,
const char *,
77xbps_dictionary_t HIDDEN xbps_find_virtualpkg_in_conf(
struct xbps_handle *,
78 xbps_dictionary_t,
const char *);
79xbps_dictionary_t HIDDEN xbps_find_pkg_in_dict(xbps_dictionary_t,
const char *);
80xbps_dictionary_t HIDDEN xbps_find_virtualpkg_in_dict(
struct xbps_handle *,
81 xbps_dictionary_t,
const char *);
82xbps_dictionary_t HIDDEN xbps_find_pkg_in_array(xbps_array_t,
const char *,
84xbps_dictionary_t HIDDEN xbps_find_virtualpkg_in_array(
struct xbps_handle *,
88bool HIDDEN xbps_transaction_check_revdeps(
struct xbps_handle *, xbps_array_t);
89bool HIDDEN xbps_transaction_check_shlibs(
struct xbps_handle *, xbps_array_t);
90bool HIDDEN xbps_transaction_check_replaces(
struct xbps_handle *, xbps_array_t);
91bool HIDDEN xbps_transaction_check_conflicts(
struct xbps_handle *, xbps_array_t);
92bool HIDDEN xbps_transaction_store(
struct xbps_handle *, xbps_array_t, xbps_dictionary_t,
bool);
93int HIDDEN xbps_transaction_init(
struct xbps_handle *);
94int HIDDEN xbps_transaction_files(
struct xbps_handle *,
95 xbps_object_iterator_t);
96int HIDDEN xbps_transaction_fetch(
struct xbps_handle *,
97 xbps_object_iterator_t);
98int HIDDEN xbps_transaction_pkg_deps(
struct xbps_handle *, xbps_array_t, xbps_dictionary_t);
99int HIDDEN xbps_transaction_internalize(
struct xbps_handle *, xbps_object_iterator_t);
101char HIDDEN *xbps_get_remote_repo_string(
const char *);
102int HIDDEN xbps_repo_sync(
struct xbps_handle *,
const char *);
103int HIDDEN xbps_file_hash_check_dictionary(
struct xbps_handle *,
104 xbps_dictionary_t,
const char *,
const char *);
105int HIDDEN xbps_file_exec(
struct xbps_handle *,
const char *, ...);
106void HIDDEN xbps_set_cb_fetch(
struct xbps_handle *, off_t, off_t, off_t,
107 const char *,
bool,
bool,
bool);
109 const char *,
const char *, ...);
110int HIDDEN xbps_unpack_binary_pkg(
struct xbps_handle *, xbps_dictionary_t);
111int HIDDEN xbps_remove_pkg(
struct xbps_handle *,
const char *,
bool);
112int HIDDEN xbps_register_pkg(
struct xbps_handle *, xbps_dictionary_t);
113char HIDDEN *xbps_archive_get_file(
struct archive *,
struct archive_entry *);
114xbps_dictionary_t HIDDEN xbps_archive_get_dictionary(
struct archive *,
115 struct archive_entry *);
116const char HIDDEN *vpkg_user_conf(
struct xbps_handle *,
const char *,
bool);
117xbps_array_t HIDDEN xbps_get_pkg_fulldeptree(
struct xbps_handle *,
Generic XBPS structure handler for initialization.