-int pkg_hash_add_from_file(const char *file_name, pkg_src_t *src,
- pkg_dest_t *dest, int is_status_file);
-int pkg_hash_load_feeds(void);
-int pkg_hash_load_status_files(void);
+int pkg_hash_add_from_file(const char *file_name, pkg_src_t * src,
+ pkg_dest_t * dest, int is_status_file, int state_flags,
+ void (*cb)(pkg_t *, void *), void *priv);
+int pkg_hash_load_feeds(int state_flags, void (*cb)(pkg_t *, void *), void *priv);
+int pkg_hash_load_status_files(void (*cb)(pkg_t *, void *), void *priv);
+int pkg_hash_load_package_details(void);