27 #ifndef _XBPS_API_IMPL_H_
28 #define _XBPS_API_IMPL_H_
38 #define HIDDEN __attribute__ ((visibility("hidden")))
46 #define ARCHIVE_READ_BLOCKSIZE 10240
48 #define EXTRACT_FLAGS ARCHIVE_EXTRACT_SECURE_NODOTDOT | \
49 ARCHIVE_EXTRACT_SECURE_SYMLINKS
50 #define FEXTRACT_FLAGS ARCHIVE_EXTRACT_OWNER | ARCHIVE_EXTRACT_PERM | \
51 ARCHIVE_EXTRACT_TIME | ARCHIVE_EXTRACT_UNLINK | \
55 #define __UNCONST(a) ((void *)(unsigned long)(const void *)(a))
64 int HIDDEN dewey_match(
const char *,
const char *);
71 void HIDDEN xbps_pkgdb_release(
struct xbps_handle *);
77 bool HIDDEN xbps_add_obj_to_dict(prop_dictionary_t,
78 prop_object_t,
const char *);
79 bool HIDDEN xbps_add_obj_to_array(prop_array_t, prop_object_t);
81 int HIDDEN xbps_array_replace_dict_by_name(prop_array_t,
84 int HIDDEN xbps_array_replace_dict_by_pattern(prop_array_t,
92 bool HIDDEN xbps_remove_pkg_from_array_by_name(prop_array_t,
const char *);
93 bool HIDDEN xbps_remove_pkg_from_array_by_pattern(prop_array_t,
const char *);
94 bool HIDDEN xbps_remove_pkg_from_array_by_pkgver(prop_array_t,
const char *);
95 bool HIDDEN xbps_remove_pkgname_from_array(prop_array_t,
const char *);
96 bool HIDDEN xbps_remove_string_from_array(prop_array_t,
const char *);
102 char HIDDEN *xbps_repository_pkg_path(
struct xbps_handle *, prop_dictionary_t);
109 void HIDDEN xbps_rpool_release(
struct xbps_handle *);
115 void HIDDEN xbps_fetch_set_cache_connection(
int,
int);
116 void HIDDEN xbps_fetch_unset_cache_connection(
void);
122 int HIDDEN xbps_entry_is_a_conf_file(prop_dictionary_t,
const char *);
123 int HIDDEN xbps_entry_install_conf_file(
struct xbps_handle *,
125 struct archive_entry *,
133 prop_dictionary_t HIDDEN
134 xbps_dictionary_from_archive_entry(
struct archive *,
135 struct archive_entry *);
141 int HIDDEN xbps_repository_find_deps(
struct xbps_handle *,
149 prop_dictionary_t HIDDEN xbps_find_pkg_in_array(prop_array_t,
const char *);
150 prop_dictionary_t HIDDEN
151 xbps_find_virtualpkg_in_array(
struct xbps_handle *, prop_array_t,
158 int HIDDEN xbps_transaction_sort(
struct xbps_handle *);
164 int HIDDEN xbps_transaction_init(
struct xbps_handle *);
170 char HIDDEN *xbps_get_remote_repo_string(
const char *);
171 int HIDDEN xbps_rindex_sync(
struct xbps_handle *,
const char *,
const char *);
177 int HIDDEN xbps_file_hash_check_dictionary(
struct xbps_handle *,
186 int HIDDEN xbps_file_exec(
struct xbps_handle *,
const char *, ...);
192 void HIDDEN xbps_set_cb_fetch(
struct xbps_handle *, off_t, off_t, off_t,
193 const char *,
bool,
bool,
bool);
195 const char *,
const char *,
const char *, ...);
201 int HIDDEN xbps_unpack_binary_pkg(
struct xbps_handle *, prop_dictionary_t);
203 int HIDDEN xbps_transaction_package_replace(
struct xbps_handle *);
209 void HIDDEN xbps_pkg_find_conflicts(
struct xbps_handle *,
216 const char HIDDEN *vpkg_user_conf(
struct xbps_handle *,
const char *,
bool);