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
7473fa0f
Commit
7473fa0f
authored
Feb 27, 2009
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
directory: moved DIRECTORY_* string constants
Moved some of them to to directory_save.c, and others to database.c.
parent
eae02874
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
7 deletions
+9
-7
database.c
src/database.c
+5
-0
directory.h
src/directory.h
+0
-7
directory_save.c
src/directory_save.c
+4
-0
No files found.
src/database.c
View file @
7473fa0f
...
...
@@ -38,6 +38,11 @@
#undef G_LOG_DOMAIN
#define G_LOG_DOMAIN "database"
#define DIRECTORY_INFO_BEGIN "info_begin"
#define DIRECTORY_INFO_END "info_end"
#define DIRECTORY_MPD_VERSION "mpd_version: "
#define DIRECTORY_FS_CHARSET "fs_charset: "
static
char
*
database_path
;
static
struct
directory
*
music_root
;
...
...
src/directory.h
View file @
7473fa0f
...
...
@@ -26,13 +26,6 @@
#include <sys/types.h>
#define DIRECTORY_DIR "directory: "
#define DIRECTORY_MTIME "mtime: "
/* DEPRECATED, noop-read-only */
#define DIRECTORY_BEGIN "begin: "
#define DIRECTORY_END "end: "
#define DIRECTORY_INFO_BEGIN "info_begin"
#define DIRECTORY_INFO_END "info_end"
#define DIRECTORY_MPD_VERSION "mpd_version: "
#define DIRECTORY_FS_CHARSET "fs_charset: "
#define DEVICE_INARCHIVE (unsigned)(-1)
...
...
src/directory_save.c
View file @
7473fa0f
...
...
@@ -28,6 +28,10 @@
#include <assert.h>
#include <string.h>
#define DIRECTORY_MTIME "mtime: "
/* DEPRECATED, noop-read-only */
#define DIRECTORY_BEGIN "begin: "
#define DIRECTORY_END "end: "
/* TODO error checking */
int
directory_save
(
FILE
*
fp
,
struct
directory
*
directory
)
...
...
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