directory: moved DIRECTORY_* string constants

Moved some of them to to directory_save.c, and others to database.c.
This commit is contained in:
Max Kellermann 2009-02-27 19:30:16 +01:00
parent eae0287466
commit 7473fa0f4e
3 changed files with 9 additions and 7 deletions

View File

@ -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;

View File

@ -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)

View File

@ -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)