projects
/
project
/
opkg-lede.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
libopkg: store checksums in binary form, use integer index for architecture
[project/opkg-lede.git]
/
libopkg
/
pkg.h
diff --git
a/libopkg/pkg.h
b/libopkg/pkg.h
index 2c645aade2e5da7e9900453e2083090ed93428cd..df5d7a76086c6709d8dcd63293f3dd30e8123701 100644
(file)
--- a/
libopkg/pkg.h
+++ b/
libopkg/pkg.h
@@
-89,8
+89,6
@@
enum pkg_fields {
PKG_LOCAL_FILENAME,
PKG_VERSION,
PKG_REVISION,
PKG_LOCAL_FILENAME,
PKG_VERSION,
PKG_REVISION,
- PKG_ARCHITECTURE,
- PKG_ARCH_PRIORITY,
PKG_DESCRIPTION,
PKG_MD5SUM,
PKG_SHA256SUM,
PKG_DESCRIPTION,
PKG_MD5SUM,
PKG_SHA256SUM,
@@
-168,6
+166,8
@@
struct pkg {
int auto_installed:1;
int is_upgrade:1;
int auto_installed:1;
int is_upgrade:1;
+ int arch_index:3;
+
struct blob_buf blob;
};
struct blob_buf blob;
};
@@
-206,6
+206,11
@@
static inline void * pkg_get_ptr(const pkg_t *pkg, int id)
return ptr ? *ptr : NULL;
}
return ptr ? *ptr : NULL;
}
+char *pkg_set_architecture(pkg_t *pkg, const char *architecture, ssize_t len);
+char *pkg_get_architecture(const pkg_t *pkg);
+int pkg_get_arch_priority(const pkg_t *pkg);
+
+
abstract_pkg_t *abstract_pkg_new(void);
/*
abstract_pkg_t *abstract_pkg_new(void);
/*