mirror of
https://github.com/textmate/textmate.git
synced 2026-04-28 03:00:34 -04:00
This is instead of only showing the revision, which lack semantic info such as ‘alpha’ and 2.0 versus 1.5.11. We now also show the version after a successful download instead of just “Download Completed”.
24 lines
764 B
C++
24 lines
764 B
C++
#ifndef SW_UPDATE_H_TW02442V
|
|
#define SW_UPDATE_H_TW02442V
|
|
|
|
#include <network/network.h>
|
|
#include <oak/debug.h>
|
|
|
|
namespace sw_update
|
|
{
|
|
struct version_info_t
|
|
{
|
|
version_info_t (long revision = 0, std::string const& version = NULL_STR, std::string const& url = NULL_STR) : revision(revision), version(version), url(url) { }
|
|
|
|
long revision;
|
|
std::string version;
|
|
std::string url;
|
|
};
|
|
|
|
PUBLIC version_info_t download_info (std::string const& url, std::string* error = NULL);
|
|
PUBLIC std::string download_update (std::string const& url, key_chain_t const& keyChain, std::string* error, double* progress = NULL, bool const* stopFlag = NULL);
|
|
PUBLIC std::string install_update (std::string const& src);
|
|
}
|
|
|
|
#endif /* end of include guard: SW_UPDATE_H_TW02442V */
|