Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
214ddee2
Commit
214ddee2
authored
May 08, 2019
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
util/Time*: move to time/
parent
973c87b3
Show whitespace changes
Inline
Side-by-side
Showing
29 changed files
with
41 additions
and
29 deletions
+41
-29
meson.build
meson.build
+1
-0
PlaylistDatabase.cxx
src/PlaylistDatabase.cxx
+1
-1
SongPrint.cxx
src/SongPrint.cxx
+1
-1
SongSave.cxx
src/SongSave.cxx
+1
-1
Stats.cxx
src/Stats.cxx
+1
-1
TimePrint.cxx
src/TimePrint.cxx
+1
-1
OtherCommands.cxx
src/command/OtherCommands.cxx
+1
-1
PlaylistCommands.cxx
src/command/PlaylistCommands.cxx
+1
-1
StorageCommands.cxx
src/command/StorageCommands.cxx
+1
-1
DatabasePrint.cxx
src/db/DatabasePrint.cxx
+1
-1
DirectorySave.cxx
src/db/plugins/simple/DirectorySave.cxx
+1
-1
Filter.cxx
src/song/Filter.cxx
+2
-2
ModifiedSinceSongFilter.cxx
src/song/ModifiedSinceSongFilter.cxx
+1
-1
meson.build
src/song/meson.build
+1
-0
CurlStorage.cxx
src/storage/plugins/CurlStorage.cxx
+2
-2
meson.build
src/storage/plugins/meson.build
+1
-0
Format.cxx
src/tag/Format.cxx
+1
-1
meson.build
src/tag/meson.build
+1
-0
ChronoUtil.hxx
src/time/ChronoUtil.hxx
+0
-0
Convert.cxx
src/time/Convert.cxx
+1
-1
Convert.hxx
src/time/Convert.hxx
+0
-0
ISO8601.cxx
src/time/ISO8601.cxx
+3
-3
ISO8601.hxx
src/time/ISO8601.hxx
+2
-2
Parser.cxx
src/time/Parser.cxx
+2
-2
Parser.hxx
src/time/Parser.hxx
+0
-0
meson.build
src/time/meson.build
+11
-0
meson.build
src/util/meson.build
+0
-3
run_storage.cxx
test/run_storage.cxx
+1
-1
test_translate_song.cxx
test/test_translate_song.cxx
+1
-1
No files found.
meson.build
View file @
214ddee2
...
...
@@ -300,6 +300,7 @@ if enable_database
endif
subdir('src/util')
subdir('src/time')
subdir('src/system')
subdir('src/thread')
subdir('src/event')
...
...
src/PlaylistDatabase.cxx
View file @
214ddee2
...
...
@@ -21,8 +21,8 @@
#include "db/PlaylistVector.hxx"
#include "fs/io/TextFile.hxx"
#include "fs/io/BufferedOutputStream.hxx"
#include "time/ChronoUtil.hxx"
#include "util/StringStrip.hxx"
#include "util/ChronoUtil.hxx"
#include "util/RuntimeError.hxx"
#include <string.h>
...
...
src/SongPrint.cxx
View file @
214ddee2
...
...
@@ -27,7 +27,7 @@
#include "TagPrint.hxx"
#include "client/Response.hxx"
#include "fs/Traits.hxx"
#include "
util
/ChronoUtil.hxx"
#include "
time
/ChronoUtil.hxx"
#include "util/UriUtil.hxx"
#define SONG_FILE "file: "
...
...
src/SongSave.cxx
View file @
214ddee2
...
...
@@ -27,7 +27,7 @@
#include "tag/ParseName.hxx"
#include "tag/Tag.hxx"
#include "tag/Builder.hxx"
#include "
util
/ChronoUtil.hxx"
#include "
time
/ChronoUtil.hxx"
#include "util/StringAPI.hxx"
#include "util/StringBuffer.hxx"
#include "util/StringStrip.hxx"
...
...
src/Stats.cxx
View file @
214ddee2
...
...
@@ -28,7 +28,7 @@
#include "db/Stats.hxx"
#include "system/Clock.hxx"
#include "Log.hxx"
#include "
util
/ChronoUtil.hxx"
#include "
time
/ChronoUtil.hxx"
#include <chrono>
#include <cmath>
...
...
src/TimePrint.cxx
View file @
214ddee2
...
...
@@ -19,7 +19,7 @@
#include "TimePrint.hxx"
#include "client/Response.hxx"
#include "
util/Time
ISO8601.hxx"
#include "
time/
ISO8601.hxx"
void
time_print
(
Response
&
r
,
const
char
*
name
,
...
...
src/command/OtherCommands.cxx
View file @
214ddee2
...
...
@@ -35,7 +35,7 @@
#include "decoder/DecoderPrint.hxx"
#include "ls.hxx"
#include "mixer/Volume.hxx"
#include "
util
/ChronoUtil.hxx"
#include "
time
/ChronoUtil.hxx"
#include "util/UriUtil.hxx"
#include "util/StringAPI.hxx"
#include "fs/AllocatedPath.hxx"
...
...
src/command/PlaylistCommands.cxx
View file @
214ddee2
...
...
@@ -38,9 +38,9 @@
#include "client/Response.hxx"
#include "Mapper.hxx"
#include "fs/AllocatedPath.hxx"
#include "time/ChronoUtil.hxx"
#include "util/UriUtil.hxx"
#include "util/ConstBuffer.hxx"
#include "util/ChronoUtil.hxx"
#include "LocateUri.hxx"
bool
...
...
src/command/StorageCommands.cxx
View file @
214ddee2
...
...
@@ -23,8 +23,8 @@
#include "StorageCommands.hxx"
#include "Request.hxx"
#include "CommandError.hxx"
#include "time/ChronoUtil.hxx"
#include "util/UriUtil.hxx"
#include "util/ChronoUtil.hxx"
#include "util/ConstBuffer.hxx"
#include "fs/Traits.hxx"
#include "client/Client.hxx"
...
...
src/db/DatabasePrint.cxx
View file @
214ddee2
...
...
@@ -34,7 +34,7 @@
#include "PlaylistInfo.hxx"
#include "Interface.hxx"
#include "fs/Traits.hxx"
#include "
util
/ChronoUtil.hxx"
#include "
time
/ChronoUtil.hxx"
#include <functional>
...
...
src/db/plugins/simple/DirectorySave.cxx
View file @
214ddee2
...
...
@@ -25,7 +25,7 @@
#include "PlaylistDatabase.hxx"
#include "fs/io/TextFile.hxx"
#include "fs/io/BufferedOutputStream.hxx"
#include "
util
/ChronoUtil.hxx"
#include "
time
/ChronoUtil.hxx"
#include "util/StringCompare.hxx"
#include "util/NumberParser.hxx"
#include "util/RuntimeError.hxx"
...
...
src/song/Filter.cxx
View file @
214ddee2
...
...
@@ -29,8 +29,9 @@
#include "AudioParser.hxx"
#include "tag/ParseName.hxx"
#include "tag/Tag.hxx"
#include "time/ChronoUtil.hxx"
#include "time/ISO8601.hxx"
#include "util/CharUtil.hxx"
#include "util/ChronoUtil.hxx"
#include "util/ConstBuffer.hxx"
#include "util/RuntimeError.hxx"
#include "util/StringAPI.hxx"
...
...
@@ -38,7 +39,6 @@
#include "util/StringStrip.hxx"
#include "util/StringView.hxx"
#include "util/ASCII.hxx"
#include "util/TimeISO8601.hxx"
#include "util/UriUtil.hxx"
#include "lib/icu/CaseFold.hxx"
...
...
src/song/ModifiedSinceSongFilter.cxx
View file @
214ddee2
...
...
@@ -19,7 +19,7 @@
#include "ModifiedSinceSongFilter.hxx"
#include "LightSong.hxx"
#include "
util/Time
ISO8601.hxx"
#include "
time/
ISO8601.hxx"
std
::
string
ModifiedSinceSongFilter
::
ToExpression
()
const
noexcept
...
...
src/song/meson.build
View file @
214ddee2
...
...
@@ -24,6 +24,7 @@ song_dep = declare_dependency(
icu_dep,
pcre_dep,
tag_dep,
time_dep,
util_dep,
],
)
src/storage/plugins/CurlStorage.cxx
View file @
214ddee2
...
...
@@ -33,13 +33,13 @@
#include "event/DeferEvent.hxx"
#include "thread/Mutex.hxx"
#include "thread/Cond.hxx"
#include "time/ChronoUtil.hxx"
#include "time/Parser.hxx"
#include "util/ASCII.hxx"
#include "util/ChronoUtil.hxx"
#include "util/IterableSplitString.hxx"
#include "util/RuntimeError.hxx"
#include "util/StringCompare.hxx"
#include "util/StringFormat.hxx"
#include "util/TimeParser.hxx"
#include "util/UriUtil.hxx"
#include <algorithm>
...
...
src/storage/plugins/meson.build
View file @
214ddee2
...
...
@@ -57,5 +57,6 @@ storage_plugins_dep = declare_dependency(
dependencies: [
storage_api_dep,
fs_dep,
time_dep,
],
)
src/tag/Format.cxx
View file @
214ddee2
...
...
@@ -20,9 +20,9 @@
#include "Format.hxx"
#include "Tag.hxx"
#include "ParseName.hxx"
#include "time/Convert.hxx"
#include "util/format.h"
#include "util/TruncateString.hxx"
#include "util/TimeConvert.hxx"
#include <algorithm>
...
...
src/tag/meson.build
View file @
214ddee2
...
...
@@ -45,6 +45,7 @@ tag = static_library(
tag_dep = declare_dependency(
link_with: tag,
dependencies: [
time_dep,
util_dep,
],
)
src/
util
/ChronoUtil.hxx
→
src/
time
/ChronoUtil.hxx
View file @
214ddee2
File moved
src/
util/Time
Convert.cxx
→
src/
time/
Convert.cxx
View file @
214ddee2
...
...
@@ -30,7 +30,7 @@
* OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "
Time
Convert.hxx"
#include "Convert.hxx"
#include <stdexcept>
...
...
src/
util/Time
Convert.hxx
→
src/
time/
Convert.hxx
View file @
214ddee2
File moved
src/
util/Time
ISO8601.cxx
→
src/
time/
ISO8601.cxx
View file @
214ddee2
...
...
@@ -30,9 +30,9 @@
* OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "
Time
ISO8601.hxx"
#include "
Time
Convert.hxx"
#include "
Time
Parser.hxx"
#include "ISO8601.hxx"
#include "Convert.hxx"
#include "Parser.hxx"
StringBuffer
<
64
>
FormatISO8601
(
const
struct
tm
&
tm
)
noexcept
...
...
src/
util/Time
ISO8601.hxx
→
src/
time/
ISO8601.hxx
View file @
214ddee2
...
...
@@ -33,8 +33,8 @@
#ifndef TIME_ISO8601_HXX
#define TIME_ISO8601_HXX
#include "StringBuffer.hxx"
#include "Compiler.h"
#include "
util/
StringBuffer.hxx"
#include "
util/
Compiler.h"
#include <string>
#include <chrono>
...
...
src/
util/Time
Parser.cxx
→
src/
time/
Parser.cxx
View file @
214ddee2
...
...
@@ -27,8 +27,8 @@
* OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "
Time
Parser.hxx"
#include "Compiler.h"
#include "Parser.hxx"
#include "
util/
Compiler.h"
#include <stdexcept>
...
...
src/
util/Time
Parser.hxx
→
src/
time/
Parser.hxx
View file @
214ddee2
File moved
src/time/meson.build
0 → 100644
View file @
214ddee2
time = static_library(
'time',
'Parser.cxx',
'Convert.cxx',
'ISO8601.cxx',
include_directories: inc,
)
time_dep = declare_dependency(
link_with: time,
)
src/util/meson.build
View file @
214ddee2
...
...
@@ -16,9 +16,6 @@ util = static_library(
'SplitString.cxx',
'FormatString.cxx',
'Tokenizer.cxx',
'TimeParser.cxx',
'TimeConvert.cxx',
'TimeISO8601.cxx',
'UriUtil.cxx',
'LazyRandomEngine.cxx',
'HugeAllocator.cxx',
...
...
test/run_storage.cxx
View file @
214ddee2
...
...
@@ -22,7 +22,7 @@
#include "storage/StorageInterface.hxx"
#include "storage/FileInfo.hxx"
#include "net/Init.hxx"
#include "
util
/ChronoUtil.hxx"
#include "
time
/ChronoUtil.hxx"
#include "util/PrintException.hxx"
#include <memory>
...
...
test/test_translate_song.cxx
View file @
214ddee2
...
...
@@ -17,7 +17,7 @@
#include "storage/StorageInterface.hxx"
#include "storage/plugins/LocalStorage.hxx"
#include "Mapper.hxx"
#include "
util
/ChronoUtil.hxx"
#include "
time
/ChronoUtil.hxx"
#include <gtest/gtest.h>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment