Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
VideoLAN
medialibrary
Commits
ab68f490
Commit
ab68f490
authored
Sep 27, 2016
by
Hugo Beauzée-Luyssen
Browse files
factory: IFileSystem: Rename refresh to refreshDevices
parent
07ed5d5f
Changes
5
Hide whitespace changes
Inline
Side-by-side
include/factory/IFileSystem.h
View file @
ab68f490
...
...
@@ -61,7 +61,7 @@ namespace factory
///
/// \brief refresh Will cause any FS cache to be refreshed.
///
virtual
void
refresh
()
=
0
;
virtual
void
refresh
Devices
()
=
0
;
};
}
...
...
src/discoverer/FsDiscoverer.cpp
View file @
ab68f490
...
...
@@ -110,7 +110,7 @@ void FsDiscoverer::reload( const std::string& entryPoint )
void
FsDiscoverer
::
checkDevices
()
{
m_fsFactory
->
refresh
();
m_fsFactory
->
refresh
Devices
();
auto
devices
=
Device
::
fetchAll
(
m_ml
);
for
(
auto
&
d
:
devices
)
{
...
...
src/factory/FileSystemFactory.cpp
View file @
ab68f490
...
...
@@ -99,7 +99,7 @@ std::shared_ptr<fs::IDevice> FileSystemFactory::createDeviceFromPath( const std:
return
res
;
}
void
FileSystemFactory
::
refresh
()
void
FileSystemFactory
::
refresh
Devices
()
{
{
std
::
lock_guard
<
compat
::
Mutex
>
lock
(
m_mutex
);
...
...
src/factory/FileSystemFactory.h
View file @
ab68f490
...
...
@@ -45,7 +45,7 @@ namespace factory
virtual
std
::
shared_ptr
<
fs
::
IDirectory
>
createDirectory
(
const
std
::
string
&
path
)
override
;
virtual
std
::
shared_ptr
<
fs
::
IDevice
>
createDevice
(
const
std
::
string
&
uuid
)
override
;
virtual
std
::
shared_ptr
<
fs
::
IDevice
>
createDeviceFromPath
(
const
std
::
string
&
path
)
override
;
virtual
void
refresh
()
override
;
virtual
void
refresh
Devices
()
override
;
private:
std
::
unordered_map
<
std
::
string
,
std
::
shared_ptr
<
fs
::
IDirectory
>>
m_dirs
;
...
...
test/mocks/FileSystem.h
View file @
ab68f490
...
...
@@ -177,7 +177,7 @@ struct FileSystemFactory : public factory::IFileSystem
return
*
it
;
}
virtual
void
refresh
()
override
{}
virtual
void
refresh
Devices
()
override
{}
std
::
shared_ptr
<
Device
>
device
(
const
std
::
string
&
path
)
{
...
...
@@ -315,7 +315,7 @@ public:
return
nullptr
;
}
virtual
void
refresh
()
override
virtual
void
refresh
Devices
()
override
{
}
};
...
...
Write
Preview
Supports
Markdown
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