Fixed some declarations and marked some funcs as TODO

This commit is contained in:
Сергей Конев 2024-10-23 14:15:22 +03:00
parent 51f7abc311
commit 72f3c7e0bb

View File

@ -73,7 +73,14 @@ struct PVerFileParser {
extern "C" {
void init_config_system();
#ifndef ALT_LINUX
PCache *pkg_cache_create();
#else
PCache *pkg_cache_create(const bool WithLock, OpProgress &Progress);
#endif
void pkg_cache_release(PCache *cache);
int32_t pkg_cache_compare_versions(PCache *cache, const char *left, const char *right);
@ -81,7 +88,12 @@ extern "C" {
// pkg_iter creation and deletion
PPkgIterator *pkg_cache_pkg_iter(PCache *cache);
PPkgIterator *pkg_cache_find_name(PCache *cache, const char *name);
#ifndef ALT_LINUX
PPkgIterator *pkg_cache_find_name_arch(PCache *cache, const char *name, const char *arch);
#else
PPkgIterator *pkg_cache_find_name_arch(PCache *cache, const char *name);
#endif
void pkg_iter_release(PPkgIterator *iterator);
// pkg_iter mutation
@ -89,10 +101,15 @@ extern "C" {
bool pkg_iter_end(PPkgIterator *iterator);
// pkg_iter access
// TODO: Implement for ALT_LINUX
const char *pkg_iter_name(PPkgIterator *iterator);
const char *pkg_iter_arch(PPkgIterator *iterator);
const char *pkg_iter_current_version(PPkgIterator *iterator);
#ifndef ALT_LINUX
const char *pkg_iter_candidate_version(PPkgIterator *iterator);
#else
const char *pkg_iter_candidate_version(PPkgIterator *wrapper, OpProgress &Progress);
#endif
// ver_iter creation and deletion
@ -110,6 +127,7 @@ extern "C" {
const char *ver_iter_priority_type(PVerIterator *wrapper);
#ifndef YE_OLDE_APT
// TODO: Implement for ALT_LINUX
const char *ver_iter_source_package(PVerIterator *iterator);
const char *ver_iter_source_version(PVerIterator *iterator);
int32_t ver_iter_priority(PVerIterator *iterator);
@ -144,6 +162,7 @@ extern "C" {
const char *ver_file_parser_short_desc(PVerFileParser *parser);
const char *ver_file_parser_long_desc(PVerFileParser *parser);
const char *ver_file_parser_maintainer(PVerFileParser *parser);
// TODO: Implementation and declaration for ALT_LINUX
const char *ver_file_parser_homepage(PVerFileParser *parser);
// ver_file_iter has no accessors, only the creation of pkg_file_iter
@ -162,7 +181,9 @@ extern "C" {
const char *pkg_file_iter_archive(PPkgFileIterator *iterator);
const char *pkg_file_iter_version(PPkgFileIterator *iterator);
const char *pkg_file_iter_origin(PPkgFileIterator *iterator);
// TODO: Implementation and declaration for ALT_LINUX
const char *pkg_file_iter_codename(PPkgFileIterator *iterator);
const char *pkg_file_iter_label(PPkgFileIterator *iterator);
const char *pkg_file_iter_site(PPkgFileIterator *iterator);
const char *pkg_file_iter_component(PPkgFileIterator *iterator);