db_lock: convert to C++
This commit is contained in:
parent
22f0ef6d6b
commit
51a2d09eb7
@ -234,7 +234,7 @@ src_mpd_SOURCES = \
|
||||
src/DatabaseQueue.cxx src/DatabaseQueue.hxx \
|
||||
src/DatabasePlaylist.cxx src/DatabasePlaylist.hxx \
|
||||
src/db_error.h \
|
||||
src/db_lock.c src/db_lock.h \
|
||||
src/DatabaseLock.cxx src/DatabaseLock.hxx \
|
||||
src/DatabaseSave.cxx src/DatabaseSave.hxx \
|
||||
src/DatabasePlugin.hxx \
|
||||
src/DatabaseVisitor.hxx \
|
||||
@ -1072,7 +1072,7 @@ test_DumpDatabase_SOURCES = test/DumpDatabase.cxx \
|
||||
src/DatabaseSelection.cxx \
|
||||
src/Directory.cxx src/DirectorySave.cxx \
|
||||
src/PlaylistVector.cxx src/PlaylistDatabase.cxx \
|
||||
src/db_lock.c src/DatabaseSave.cxx \
|
||||
src/DatabaseLock.cxx src/DatabaseSave.cxx \
|
||||
src/Song.cxx src/song_sort.c src/SongSave.cxx \
|
||||
src/tag.c src/tag_pool.c src/TagSave.cxx \
|
||||
src/path.c \
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2003-2011 The Music Player Daemon Project
|
||||
* Copyright (C) 2003-2013 The Music Player Daemon Project
|
||||
* http://www.musicpd.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
@ -18,7 +18,7 @@
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "db_lock.h"
|
||||
#include "DatabaseLock.hxx"
|
||||
#include "gcc.h"
|
||||
|
||||
#if GCC_CHECK_VERSION(4, 2)
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2003-2011 The Music Player Daemon Project
|
||||
* Copyright (C) 2003-2013 The Music Player Daemon Project
|
||||
* http://www.musicpd.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
@ -23,14 +23,13 @@
|
||||
* multi-threading.
|
||||
*/
|
||||
|
||||
#ifndef MPD_DB_LOCK_H
|
||||
#define MPD_DB_LOCK_H
|
||||
#ifndef MPD_DB_LOCK_HXX
|
||||
#define MPD_DB_LOCK_HXX
|
||||
|
||||
#include "check.h"
|
||||
|
||||
#include <glib.h>
|
||||
#include <assert.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
extern GStaticMutex db_mutex;
|
||||
|
@ -19,7 +19,7 @@
|
||||
|
||||
#include "config.h"
|
||||
#include "DatabaseSave.hxx"
|
||||
#include "db_lock.h"
|
||||
#include "DatabaseLock.hxx"
|
||||
#include "directory.h"
|
||||
#include "DirectorySave.hxx"
|
||||
#include "song.h"
|
||||
|
@ -21,13 +21,13 @@
|
||||
#include "directory.h"
|
||||
#include "SongFilter.hxx"
|
||||
#include "PlaylistVector.hxx"
|
||||
#include "DatabaseLock.hxx"
|
||||
|
||||
extern "C" {
|
||||
#include "song.h"
|
||||
#include "song_sort.h"
|
||||
#include "path.h"
|
||||
#include "util/list_sort.h"
|
||||
#include "db_lock.h"
|
||||
}
|
||||
|
||||
#include <glib.h>
|
||||
|
@ -19,7 +19,7 @@
|
||||
|
||||
#include "config.h"
|
||||
#include "PlaylistVector.hxx"
|
||||
#include "db_lock.h"
|
||||
#include "DatabaseLock.hxx"
|
||||
|
||||
#include <assert.h>
|
||||
#include <string.h>
|
||||
|
@ -20,6 +20,7 @@
|
||||
#include "config.h"
|
||||
#include "StickerCommands.hxx"
|
||||
#include "SongPrint.hxx"
|
||||
#include "DatabaseLock.hxx"
|
||||
|
||||
extern "C" {
|
||||
#include "protocol/result.h"
|
||||
@ -27,7 +28,6 @@ extern "C" {
|
||||
#include "sticker_print.h"
|
||||
#include "song_sticker.h"
|
||||
#include "database.h"
|
||||
#include "db_lock.h"
|
||||
}
|
||||
|
||||
#include <string.h>
|
||||
|
@ -20,7 +20,7 @@
|
||||
#include "config.h" /* must be first for large file support */
|
||||
#include "UpdateArchive.hxx"
|
||||
#include "UpdateInternal.hxx"
|
||||
#include "db_lock.h"
|
||||
#include "DatabaseLock.hxx"
|
||||
#include "directory.h"
|
||||
#include "song.h"
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
||||
#include "UpdateContainer.hxx"
|
||||
#include "UpdateInternal.hxx"
|
||||
#include "UpdateDatabase.hxx"
|
||||
#include "db_lock.h"
|
||||
#include "DatabaseLock.hxx"
|
||||
#include "directory.h"
|
||||
#include "song.h"
|
||||
#include "decoder_plugin.h"
|
||||
|
@ -23,7 +23,7 @@
|
||||
#include "PlaylistVector.hxx"
|
||||
#include "directory.h"
|
||||
#include "song.h"
|
||||
#include "db_lock.h"
|
||||
#include "DatabaseLock.hxx"
|
||||
|
||||
#include <glib.h>
|
||||
#include <assert.h>
|
||||
|
@ -23,7 +23,7 @@
|
||||
#include "UpdateIO.hxx"
|
||||
#include "UpdateDatabase.hxx"
|
||||
#include "UpdateContainer.hxx"
|
||||
#include "db_lock.h"
|
||||
#include "DatabaseLock.hxx"
|
||||
#include "directory.h"
|
||||
#include "song.h"
|
||||
#include "decoder_plugin.h"
|
||||
|
@ -23,7 +23,7 @@
|
||||
#include "UpdateDatabase.hxx"
|
||||
#include "UpdateSong.hxx"
|
||||
#include "UpdateArchive.hxx"
|
||||
#include "db_lock.h"
|
||||
#include "DatabaseLock.hxx"
|
||||
#include "directory.h"
|
||||
#include "song.h"
|
||||
#include "PlaylistVector.hxx"
|
||||
|
@ -23,10 +23,10 @@
|
||||
#include "DatabaseHelpers.hxx"
|
||||
#include "SongFilter.hxx"
|
||||
#include "DatabaseSave.hxx"
|
||||
#include "DatabaseLock.hxx"
|
||||
#include "db_error.h"
|
||||
|
||||
extern "C" {
|
||||
#include "db_error.h"
|
||||
#include "db_lock.h"
|
||||
#include "conf.h"
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user