diff options
author | Timo Teräs <timo.teras@iki.fi> | 2012-02-23 17:04:51 +0200 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2012-02-23 17:04:51 +0200 |
commit | 7392acb95ea7be1317892aad1b69a01382ee3f5c (patch) | |
tree | b97a25dce86bedc25f07f0f0275b67519c0521a2 /src/apk_io.h | |
parent | a9a84215c70c746b2f6a6b3c58c338730100666c (diff) | |
download | apk-tools-7392acb95ea7be1317892aad1b69a01382ee3f5c.tar.gz apk-tools-7392acb95ea7be1317892aad1b69a01382ee3f5c.tar.bz2 apk-tools-7392acb95ea7be1317892aad1b69a01382ee3f5c.tar.xz apk-tools-7392acb95ea7be1317892aad1b69a01382ee3f5c.zip |
db: keep architecture in $ROOT/etc/apk/arch
This we use proper arch in case modifying chroot installation.
Diffstat (limited to 'src/apk_io.h')
-rw-r--r-- | src/apk_io.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/apk_io.h b/src/apk_io.h index 9a6c63a..b88293c 100644 --- a/src/apk_io.h +++ b/src/apk_io.h @@ -106,13 +106,16 @@ size_t apk_ostream_write_string(struct apk_ostream *ostream, const char *string) apk_blob_t apk_blob_from_istream(struct apk_istream *istream, size_t size); apk_blob_t apk_blob_from_file(int atfd, const char *file); -typedef int apk_dir_file_cb(void *ctx, int dirfd, const char *entry); +#define APK_BTF_ADD_EOL 0x00000001 +int apk_blob_to_file(int atfd, const char *file, apk_blob_t b, unsigned int flags); #define APK_FI_NOFOLLOW 0x80000000 - int apk_file_get_info(int atfd, const char *filename, unsigned int flags, struct apk_file_info *fi); + +typedef int apk_dir_file_cb(void *ctx, int dirfd, const char *entry); int apk_dir_foreach_file(int dirfd, apk_dir_file_cb cb, void *ctx); + int apk_move_file(int atfd, const char *from, const char *to); int apk_url_download(const char *url, int atfd, const char *file); const char *apk_url_local_file(const char *url); |