X-Git-Url: https://git.librecmc.org/?p=oweals%2Fopkg-lede.git;a=blobdiff_plain;f=libopkg%2Fopkg.h;h=970590c64ea60f6af534b41981030f1b0a3bc220;hp=73f18c9c30007682181b3fc23737add6234320c1;hb=5b68464bd8b8405fae90c1d96cdd7367a506bd5c;hpb=d9532ba4b107b6189b7e93c119a90acbddf7f804 diff --git a/libopkg/opkg.h b/libopkg/opkg.h index 73f18c9..970590c 100644 --- a/libopkg/opkg.h +++ b/libopkg/opkg.h @@ -32,6 +32,20 @@ enum _opkg_action_t OPKG_DOWNLOAD }; +enum _opkg_error_code_t +{ + OPKG_NO_ERROR, + OPKG_UNKNOWN_ERROR, + OPKG_DOWNLOAD_FAILED, + OPKG_DEPENDENCIES_FAILED, + OPKG_PACKAGE_ALREADY_INSTALLED, + OPKG_PACKAGE_NOT_AVAILABLE, + OPKG_PACKAGE_NOT_FOUND, + OPKG_PACKAGE_NOT_INSTALLED, + OPKG_GPG_ERROR, + OPKG_MD5_ERROR +}; + struct _opkg_package_t { char *name; @@ -71,5 +85,6 @@ int opkg_list_packages (opkg_t *opkg, opkg_package_callback_t callback, void *us int opkg_list_upgradable_packages (opkg_t *opkg, opkg_package_callback_t callback, void *user_data); opkg_package_t* opkg_find_package (opkg_t *opkg, const char *name, const char *version, const char *architecture, const char *repository); +int opkg_repository_accessibility_check(opkg_t *opkg); #endif /* OPKG_H */