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_cb_message(
struct xbps_handle *, xbps_dictionary_t,
const char *);
74int HIDDEN xbps_entry_is_a_conf_file(xbps_dictionary_t,
const char *);
75int HIDDEN xbps_entry_install_conf_file(
struct xbps_handle *, xbps_dictionary_t,
76 xbps_dictionary_t,
struct archive_entry *,
const char *,
78xbps_dictionary_t HIDDEN xbps_find_virtualpkg_in_conf(
struct xbps_handle *,
79 xbps_dictionary_t,
const char *);
80xbps_dictionary_t HIDDEN xbps_find_pkg_in_dict(xbps_dictionary_t,
const char *);
81xbps_dictionary_t HIDDEN xbps_find_virtualpkg_in_dict(
struct xbps_handle *,
82 xbps_dictionary_t,
const char *);
83xbps_dictionary_t HIDDEN xbps_find_pkg_in_array(xbps_array_t,
const char *,
85xbps_dictionary_t HIDDEN xbps_find_virtualpkg_in_array(
struct xbps_handle *,
89bool HIDDEN xbps_transaction_check_revdeps(
struct xbps_handle *, xbps_array_t);
90bool HIDDEN xbps_transaction_check_shlibs(
struct xbps_handle *, xbps_array_t);
91bool HIDDEN xbps_transaction_check_replaces(
struct xbps_handle *, xbps_array_t);
92bool HIDDEN xbps_transaction_check_conflicts(
struct xbps_handle *, xbps_array_t);
93bool HIDDEN xbps_transaction_store(
struct xbps_handle *, xbps_array_t, xbps_dictionary_t,
bool);
94int HIDDEN xbps_transaction_init(
struct xbps_handle *);
95int HIDDEN xbps_transaction_files(
struct xbps_handle *,
96 xbps_object_iterator_t);
97int HIDDEN xbps_transaction_fetch(
struct xbps_handle *,
98 xbps_object_iterator_t);
99int HIDDEN xbps_transaction_pkg_deps(
struct xbps_handle *, xbps_array_t, xbps_dictionary_t);
100int HIDDEN xbps_transaction_internalize(
struct xbps_handle *, xbps_object_iterator_t);
102char HIDDEN *xbps_get_remote_repo_string(
const char *);
103int HIDDEN xbps_repo_sync(
struct xbps_handle *,
const char *);
104int HIDDEN xbps_file_hash_check_dictionary(
struct xbps_handle *,
105 xbps_dictionary_t,
const char *,
const char *);
106int HIDDEN xbps_file_exec(
struct xbps_handle *,
const char *, ...);
107void HIDDEN xbps_set_cb_fetch(
struct xbps_handle *, off_t, off_t, off_t,
108 const char *,
bool,
bool,
bool);
110 const char *,
const char *, ...);
111int HIDDEN xbps_unpack_binary_pkg(
struct xbps_handle *, xbps_dictionary_t);
112int HIDDEN xbps_remove_pkg(
struct xbps_handle *,
const char *,
bool);
113int HIDDEN xbps_register_pkg(
struct xbps_handle *, xbps_dictionary_t);
114char HIDDEN *xbps_archive_get_file(
struct archive *,
struct archive_entry *);
115xbps_dictionary_t HIDDEN xbps_archive_get_dictionary(
struct archive *,
116 struct archive_entry *);
117const char HIDDEN *vpkg_user_conf(
struct xbps_handle *,
const char *,
bool);
118xbps_array_t HIDDEN xbps_get_pkg_fulldeptree(
struct xbps_handle *,
Generic XBPS structure handler for initialization.