|
|
|
|
@ -589,8 +589,22 @@ int yon_packages_remove(char *package);
|
|
|
|
|
|
|
|
|
|
config_str yon_packages_find(enum YON_PACKAGES_DB_TYPE type, const char *search_string, gsize *size);
|
|
|
|
|
|
|
|
|
|
/// @brief Get groups string for package
|
|
|
|
|
/// @param type Source database for package
|
|
|
|
|
/// @param package Package name
|
|
|
|
|
/// @return A newly allocated string of groups for requested package in bytes
|
|
|
|
|
char *yon_packages_get_version(enum YON_PACKAGES_DB_TYPE type, const char *package);
|
|
|
|
|
|
|
|
|
|
/// @brief Get description for package
|
|
|
|
|
/// @param type Source database for package
|
|
|
|
|
/// @param package Package name
|
|
|
|
|
/// @return A newly allocated description string for requested package in bytes
|
|
|
|
|
char *yon_packages_get_description(enum YON_PACKAGES_DB_TYPE type, const char *package);
|
|
|
|
|
|
|
|
|
|
/// @brief Get groups string for package
|
|
|
|
|
/// @param type Source database for package
|
|
|
|
|
/// @param package Package name
|
|
|
|
|
/// @return A newly allocated string of groups for requested package in bytes
|
|
|
|
|
char *yon_packages_get_groups(enum YON_PACKAGES_DB_TYPE type, const char *package);
|
|
|
|
|
|
|
|
|
|
/// @brief Get installed size for package
|
|
|
|
|
@ -741,4 +755,14 @@ char *yon_timezone_get_zone(const char *timezone);
|
|
|
|
|
/// @return A newly allocated char string with UTC modifier or NULL
|
|
|
|
|
char *yon_timezone_get_utc(const char *timezone);
|
|
|
|
|
|
|
|
|
|
#define KB_LABEL _("Kb")
|
|
|
|
|
#define MB_LABEL _("Mb")
|
|
|
|
|
#define GB_LABEL _("Gb")
|
|
|
|
|
#define TB_LABEL _("Tb")
|
|
|
|
|
|
|
|
|
|
/// @brief Get a string of bytes, converted to kilobytes, megabytes gigabytes or terabytes (K, M, G, T)
|
|
|
|
|
/// @param bytes bytes to convert
|
|
|
|
|
/// @return A newly allocated string with converted representation of bytes
|
|
|
|
|
char *yon_size_long_convert_automatic_to_string(unsigned long bytes);
|
|
|
|
|
|
|
|
|
|
#endif
|