neighbor/smbclient: move smbclient_domain to lib/smbclient/Domain.cxx
This commit is contained in:
parent
7e34737b2b
commit
a7989077ab
@ -414,6 +414,7 @@ libfs_a_SOURCES = \
|
|||||||
# Storage library
|
# Storage library
|
||||||
|
|
||||||
SMBCLIENT_SOURCES = \
|
SMBCLIENT_SOURCES = \
|
||||||
|
src/lib/smbclient/Domain.cxx src/lib/smbclient/Domain.hxx \
|
||||||
src/lib/smbclient/Init.cxx src/lib/smbclient/Init.hxx
|
src/lib/smbclient/Init.cxx src/lib/smbclient/Init.hxx
|
||||||
|
|
||||||
if ENABLE_DATABASE
|
if ENABLE_DATABASE
|
||||||
|
24
src/lib/smbclient/Domain.cxx
Normal file
24
src/lib/smbclient/Domain.cxx
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (C) 2003-2014 The Music Player Daemon Project
|
||||||
|
* http://www.musicpd.org
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation; either version 2 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License along
|
||||||
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "config.h"
|
||||||
|
#include "Domain.hxx"
|
||||||
|
#include "util/Domain.hxx"
|
||||||
|
|
||||||
|
const Domain smbclient_domain("smbclient");
|
27
src/lib/smbclient/Domain.hxx
Normal file
27
src/lib/smbclient/Domain.hxx
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (C) 2003-2014 The Music Player Daemon Project
|
||||||
|
* http://www.musicpd.org
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation; either version 2 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License along
|
||||||
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef MPD_SMBCLIENT_DOMAIN_HXX
|
||||||
|
#define MPD_SMBCLIENT_DOMAIN_HXX
|
||||||
|
|
||||||
|
class Domain;
|
||||||
|
|
||||||
|
extern const Domain smbclient_domain;
|
||||||
|
|
||||||
|
#endif
|
@ -20,6 +20,7 @@
|
|||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "SmbclientNeighborPlugin.hxx"
|
#include "SmbclientNeighborPlugin.hxx"
|
||||||
#include "lib/smbclient/Init.hxx"
|
#include "lib/smbclient/Init.hxx"
|
||||||
|
#include "lib/smbclient/Domain.hxx"
|
||||||
#include "neighbor/NeighborPlugin.hxx"
|
#include "neighbor/NeighborPlugin.hxx"
|
||||||
#include "neighbor/Explorer.hxx"
|
#include "neighbor/Explorer.hxx"
|
||||||
#include "neighbor/Listener.hxx"
|
#include "neighbor/Listener.hxx"
|
||||||
@ -38,8 +39,6 @@
|
|||||||
#include <list>
|
#include <list>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
|
||||||
static constexpr Domain smbclient_domain("smbclient");
|
|
||||||
|
|
||||||
class SmbclientNeighborExplorer final : public NeighborExplorer {
|
class SmbclientNeighborExplorer final : public NeighborExplorer {
|
||||||
struct Server {
|
struct Server {
|
||||||
std::string name, comment;
|
std::string name, comment;
|
||||||
|
Loading…
Reference in New Issue
Block a user