Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
588303b7
Commit
588303b7
authored
Aug 05, 2016
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lib/nfs/Manager: add Compare(ManagedConnection, ManagedConnection)
Required for Boost 1.61, which uses that overload in a BOOST_ASSERT().
parent
36704c5e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
0 deletions
+17
-0
NEWS
NEWS
+1
-0
Manager.cxx
src/lib/nfs/Manager.cxx
+12
-0
Manager.hxx
src/lib/nfs/Manager.hxx
+4
-0
No files found.
NEWS
View file @
588303b7
...
...
@@ -9,6 +9,7 @@ ver 0.19.18 (not yet released)
- sidplay: allow building with libsidplayfp instead of libsidplay2
* output
- shout: recognize setting "encoder" instead of "encoding"
* fix build failure with Boost 1.61
* require gcc 4.7 or newer
ver 0.19.17 (2016/07/09)
...
...
src/lib/nfs/Manager.cxx
View file @
588303b7
...
...
@@ -59,6 +59,18 @@ NfsManager::Compare::operator()(const ManagedConnection &a,
return
result
<
0
;
}
inline
bool
NfsManager
::
Compare
::
operator
()(
const
ManagedConnection
&
a
,
const
ManagedConnection
&
b
)
const
{
int
result
=
strcmp
(
a
.
GetServer
(),
b
.
GetServer
());
if
(
result
!=
0
)
return
result
<
0
;
result
=
strcmp
(
a
.
GetExportName
(),
b
.
GetExportName
());
return
result
<
0
;
}
NfsManager
::~
NfsManager
()
{
assert
(
GetEventLoop
().
IsInside
());
...
...
src/lib/nfs/Manager.hxx
View file @
588303b7
...
...
@@ -64,6 +64,10 @@ class NfsManager final : IdleMonitor {
gcc_pure
bool
operator
()(
const
ManagedConnection
&
a
,
const
LookupKey
b
)
const
;
gcc_pure
bool
operator
()(
const
ManagedConnection
&
a
,
const
ManagedConnection
&
b
)
const
;
};
/**
...
...
Write
Preview
Markdown
is supported
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