Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/libalpm/package.h
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2011-06-28 23:26:39 +1000
committerAllan McRae <allan@archlinux.org>2011-06-28 23:26:39 +1000
commit8a04bc25a14df93c0ca207ac83d43cdb867346a1 (patch)
tree764d2c1ffbd7bbbb6578c63550f334c1abfe84e2 /lib/libalpm/package.h
parent939d5a9511b2dcbb07390ecfcd23528d8034709b (diff)
Rename pmpkg_t to alpm_pkg_t
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'lib/libalpm/package.h')
-rw-r--r--lib/libalpm/package.h72
1 files changed, 36 insertions, 36 deletions
diff --git a/lib/libalpm/package.h b/lib/libalpm/package.h
index b74d30ef..5edf40de 100644
--- a/lib/libalpm/package.h
+++ b/lib/libalpm/package.h
@@ -48,33 +48,33 @@ typedef enum _pmpkgfrom_t {
* defined default_pkg_ops struct to work just fine for their needs.
*/
struct pkg_operations {
- const char *(*get_filename) (pmpkg_t *);
- const char *(*get_desc) (pmpkg_t *);
- const char *(*get_url) (pmpkg_t *);
- time_t (*get_builddate) (pmpkg_t *);
- time_t (*get_installdate) (pmpkg_t *);
- const char *(*get_packager) (pmpkg_t *);
- const char *(*get_md5sum) (pmpkg_t *);
- const char *(*get_arch) (pmpkg_t *);
- off_t (*get_size) (pmpkg_t *);
- off_t (*get_isize) (pmpkg_t *);
- alpm_pkgreason_t (*get_reason) (pmpkg_t *);
- int (*has_scriptlet) (pmpkg_t *);
-
- alpm_list_t *(*get_licenses) (pmpkg_t *);
- alpm_list_t *(*get_groups) (pmpkg_t *);
- alpm_list_t *(*get_depends) (pmpkg_t *);
- alpm_list_t *(*get_optdepends) (pmpkg_t *);
- alpm_list_t *(*get_conflicts) (pmpkg_t *);
- alpm_list_t *(*get_provides) (pmpkg_t *);
- alpm_list_t *(*get_replaces) (pmpkg_t *);
- alpm_list_t *(*get_deltas) (pmpkg_t *);
- alpm_list_t *(*get_files) (pmpkg_t *);
- alpm_list_t *(*get_backup) (pmpkg_t *);
-
- void *(*changelog_open) (pmpkg_t *);
- size_t (*changelog_read) (void *, size_t, const pmpkg_t *, const void *);
- int (*changelog_close) (const pmpkg_t *, void *);
+ const char *(*get_filename) (alpm_pkg_t *);
+ const char *(*get_desc) (alpm_pkg_t *);
+ const char *(*get_url) (alpm_pkg_t *);
+ time_t (*get_builddate) (alpm_pkg_t *);
+ time_t (*get_installdate) (alpm_pkg_t *);
+ const char *(*get_packager) (alpm_pkg_t *);
+ const char *(*get_md5sum) (alpm_pkg_t *);
+ const char *(*get_arch) (alpm_pkg_t *);
+ off_t (*get_size) (alpm_pkg_t *);
+ off_t (*get_isize) (alpm_pkg_t *);
+ alpm_pkgreason_t (*get_reason) (alpm_pkg_t *);
+ int (*has_scriptlet) (alpm_pkg_t *);
+
+ alpm_list_t *(*get_licenses) (alpm_pkg_t *);
+ alpm_list_t *(*get_groups) (alpm_pkg_t *);
+ alpm_list_t *(*get_depends) (alpm_pkg_t *);
+ alpm_list_t *(*get_optdepends) (alpm_pkg_t *);
+ alpm_list_t *(*get_conflicts) (alpm_pkg_t *);
+ alpm_list_t *(*get_provides) (alpm_pkg_t *);
+ alpm_list_t *(*get_replaces) (alpm_pkg_t *);
+ alpm_list_t *(*get_deltas) (alpm_pkg_t *);
+ alpm_list_t *(*get_files) (alpm_pkg_t *);
+ alpm_list_t *(*get_backup) (alpm_pkg_t *);
+
+ void *(*changelog_open) (alpm_pkg_t *);
+ size_t (*changelog_read) (void *, size_t, const alpm_pkg_t *, const void *);
+ int (*changelog_close) (const alpm_pkg_t *, void *);
/* still to add:
* checkmd5sum() ?
@@ -89,7 +89,7 @@ struct pkg_operations {
*/
extern struct pkg_operations default_pkg_ops;
-struct __pmpkg_t {
+struct __alpm_pkg_t {
unsigned long name_hash;
char *filename;
char *name;
@@ -137,20 +137,20 @@ struct __pmpkg_t {
struct pkg_operations *ops;
};
-pmpkg_t* _alpm_pkg_new(void);
-pmpkg_t *_alpm_pkg_dup(pmpkg_t *pkg);
-void _alpm_pkg_free(pmpkg_t *pkg);
-void _alpm_pkg_free_trans(pmpkg_t *pkg);
+alpm_pkg_t* _alpm_pkg_new(void);
+alpm_pkg_t *_alpm_pkg_dup(alpm_pkg_t *pkg);
+void _alpm_pkg_free(alpm_pkg_t *pkg);
+void _alpm_pkg_free_trans(alpm_pkg_t *pkg);
-pmpkg_t *_alpm_pkg_load_internal(alpm_handle_t *handle, const char *pkgfile,
+alpm_pkg_t *_alpm_pkg_load_internal(alpm_handle_t *handle, const char *pkgfile,
int full, const char *md5sum, const char *base64_sig,
pgp_verify_t check_sig);
int _alpm_pkg_cmp(const void *p1, const void *p2);
-int _alpm_pkg_compare_versions(pmpkg_t *local_pkg, pmpkg_t *pkg);
-pmpkg_t *_alpm_pkg_find(alpm_list_t *haystack, const char *needle);
-int _alpm_pkg_should_ignore(alpm_handle_t *handle, pmpkg_t *pkg);
+int _alpm_pkg_compare_versions(alpm_pkg_t *local_pkg, alpm_pkg_t *pkg);
+alpm_pkg_t *_alpm_pkg_find(alpm_list_t *haystack, const char *needle);
+int _alpm_pkg_should_ignore(alpm_handle_t *handle, alpm_pkg_t *pkg);
#endif /* _ALPM_PACKAGE_H */