mirror of
https://github.com/clangen/musikcube.git
synced 2024-11-19 11:10:52 +00:00
Version bump.
This commit is contained in:
parent
85eca216e7
commit
c9047e4a7d
@ -8,7 +8,7 @@ cmake_minimum_required(VERSION 3.0)
|
||||
project(musikcube)
|
||||
set (musikcube_VERSION_MAJOR 0)
|
||||
set (musikcube_VERSION_MINOR 96)
|
||||
set (musikcube_VERSION_PATCH 0)
|
||||
set (musikcube_VERSION_PATCH 1)
|
||||
set (musikcube_VERSION "${musikcube_VERSION_MAJOR}.${musikcube_VERSION_MINOR}.${musikcube_VERSION_PATCH}")
|
||||
|
||||
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR}/.cmake)
|
||||
|
@ -1,6 +1,6 @@
|
||||
%define name musikcube
|
||||
%define build_timestamp %{lua: print(os.date("%Y%m%d"))}
|
||||
%define version 0.96.0
|
||||
%define version 0.96.1
|
||||
Name: %{name}
|
||||
Version: %{version}
|
||||
Release: %{dist}
|
||||
|
@ -1,5 +1,5 @@
|
||||
name: musikcube # you probably want to 'snapcraft register <name>'
|
||||
version: 0.96.0
|
||||
version: 0.96.1
|
||||
summary: a terminal-based music player, metadata indexer, and server
|
||||
description: |
|
||||
musikcube is a fully functional terminal-based music player, library, and
|
||||
|
@ -85,6 +85,10 @@ namespace musik { namespace core { namespace sdk {
|
||||
static size_t CurlWriteCallback(char *ptr, size_t size, size_t nmemb, void *userdata);
|
||||
static int CurlTransferCallback(void *ptr, curl_off_t downTotal, curl_off_t downNow, curl_off_t upTotal, curl_off_t upNow);
|
||||
static size_t CurlHeaderCallback(char *buffer, size_t size, size_t nitems, void *userdata);
|
||||
#if LIBCURL_VERSION_NUM < 0x072000
|
||||
static int LegacyCurlTransferCallback(void* ptr, double downTotal, double downNow, double upTotal, double upNow);
|
||||
#endif
|
||||
|
||||
static std::string DefaultUserAgent();
|
||||
|
||||
static void ReplaceAll(std::string& input, const std::string& find, const std::string& replace);
|
||||
@ -160,6 +164,20 @@ namespace musik { namespace core { namespace sdk {
|
||||
return 0; /* ok! */
|
||||
}
|
||||
|
||||
#if LIBCURL_VERSION_NUM < 0x072000
|
||||
template <typename T>
|
||||
int HttpClient<T>::LegacyCurlTransferCallback(
|
||||
void* ptr, double downTotal, double downNow, double upTotal, double upNow)
|
||||
{
|
||||
return CurlTransferCallback(
|
||||
ptr,
|
||||
(curl_off_t)downTotal,
|
||||
(curl_off_t)downNow,
|
||||
(curl_off_t)upTotal,
|
||||
(curl_off_t)upNow);
|
||||
}
|
||||
#endif
|
||||
|
||||
template <typename T> /* copied from Common.h for SDK usage. */
|
||||
void HttpClient<T>::ReplaceAll(std::string& input, const std::string& find, const std::string& replace) {
|
||||
size_t pos = input.find(find);
|
||||
@ -251,11 +269,17 @@ namespace musik { namespace core { namespace sdk {
|
||||
|
||||
curl_easy_setopt(curl, CURLOPT_WRITEDATA, this);
|
||||
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, &CurlWriteCallback);
|
||||
curl_easy_setopt(curl, CURLOPT_XFERINFODATA, this);
|
||||
curl_easy_setopt(curl, CURLOPT_XFERINFOFUNCTION, &CurlTransferCallback);
|
||||
curl_easy_setopt(curl, CURLOPT_HEADERDATA, this);
|
||||
curl_easy_setopt(curl, CURLOPT_HEADERFUNCTION, &CurlHeaderCallback);
|
||||
|
||||
#if LIBCURL_VERSION_NUM < 0x072000
|
||||
curl_easy_setopt(this->curlEasy, CURLOPT_PROGRESSDATA, this);
|
||||
curl_easy_setopt(this->curlEasy, CURLOPT_PROGRESSFUNCTION, &LegacyCurlTransferCallback);
|
||||
#else
|
||||
curl_easy_setopt(curl, CURLOPT_XFERINFODATA, this);
|
||||
curl_easy_setopt(curl, CURLOPT_XFERINFOFUNCTION, &CurlTransferCallback);
|
||||
#endif
|
||||
|
||||
#if 0
|
||||
curl_easy_setopt(curl, CURLOPT_PROXY, "http://localhost");
|
||||
curl_easy_setopt(curl, CURLOPT_PROXYPORT, 8080);
|
||||
|
@ -38,9 +38,9 @@
|
||||
|
||||
#define VERSION_MAJOR 0
|
||||
#define VERSION_MINOR 96
|
||||
#define VERSION_PATCH 0
|
||||
#define VERSION_COMMIT_HASH "#ad09b30b"
|
||||
#define VERSION "0.96.0"
|
||||
#define VERSION_PATCH 1
|
||||
#define VERSION_COMMIT_HASH "#ffee32e2"
|
||||
#define VERSION "0.96.1"
|
||||
|
||||
namespace musik {
|
||||
namespace cube {
|
||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user