directory: moved DIRECTORY_* string constants
Moved some of them to to directory_save.c, and others to database.c.
This commit is contained in:
parent
eae0287466
commit
7473fa0f4e
@ -38,6 +38,11 @@
|
|||||||
#undef G_LOG_DOMAIN
|
#undef G_LOG_DOMAIN
|
||||||
#define G_LOG_DOMAIN "database"
|
#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 char *database_path;
|
||||||
|
|
||||||
static struct directory *music_root;
|
static struct directory *music_root;
|
||||||
|
@ -26,13 +26,6 @@
|
|||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
#define DIRECTORY_DIR "directory: "
|
#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)
|
#define DEVICE_INARCHIVE (unsigned)(-1)
|
||||||
|
|
||||||
|
@ -28,6 +28,10 @@
|
|||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
#define DIRECTORY_MTIME "mtime: " /* DEPRECATED, noop-read-only */
|
||||||
|
#define DIRECTORY_BEGIN "begin: "
|
||||||
|
#define DIRECTORY_END "end: "
|
||||||
|
|
||||||
/* TODO error checking */
|
/* TODO error checking */
|
||||||
int
|
int
|
||||||
directory_save(FILE *fp, struct directory *directory)
|
directory_save(FILE *fp, struct directory *directory)
|
||||||
|
Loading…
Reference in New Issue
Block a user