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
e81bb5d8
Commit
e81bb5d8
authored
Sep 16, 2020
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
db/update/Inotify*: include cleanup
parent
32f4f158
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
14 deletions
+9
-14
InotifySource.cxx
src/db/update/InotifySource.cxx
+4
-4
InotifySource.hxx
src/db/update/InotifySource.hxx
+0
-3
InotifyUpdate.cxx
src/db/update/InotifyUpdate.cxx
+5
-5
InotifyUpdate.hxx
src/db/update/InotifyUpdate.hxx
+0
-2
No files found.
src/db/update/InotifySource.cxx
View file @
e81bb5d8
...
...
@@ -24,11 +24,11 @@
#include "system/Error.hxx"
#include "Log.hxx"
#include <cerrno>
#include <climits>
#include <cstdint>
#include <sys/inotify.h>
#include <unistd.h>
#include <errno.h>
#include <stdint.h>
#include <limits.h>
bool
InotifySource
::
OnSocketReady
(
gcc_unused
unsigned
flags
)
noexcept
...
...
src/db/update/InotifySource.hxx
View file @
e81bb5d8
...
...
@@ -21,9 +21,6 @@
#define MPD_INOTIFY_SOURCE_HXX
#include "event/SocketMonitor.hxx"
#include "util/Compiler.h"
class
FileDescriptor
;
typedef
void
(
*
mpd_inotify_callback_t
)(
int
wd
,
unsigned
mask
,
const
char
*
name
,
void
*
ctx
);
...
...
src/db/update/InotifyUpdate.cxx
View file @
e81bb5d8
...
...
@@ -27,13 +27,13 @@
#include "fs/Traits.hxx"
#include "Log.hxx"
#include <
string
>
#include <
map
>
#include <
cassert
>
#include <
cstring
>
#include <forward_list>
#include <map>
#include <string>
#include <assert.h>
#include <sys/inotify.h>
#include <string.h>
#include <dirent.h>
static
constexpr
unsigned
IN_MASK
=
...
...
@@ -148,7 +148,7 @@ WatchDirectory::GetUriFS() const noexcept
static
bool
skip_path
(
const
char
*
path
)
{
return
PathTraitsFS
::
IsSpecialFilename
(
path
)
||
strchr
(
path
,
'\n'
)
!=
nullptr
;
st
d
::
st
rchr
(
path
,
'\n'
)
!=
nullptr
;
}
static
void
...
...
src/db/update/InotifyUpdate.hxx
View file @
e81bb5d8
...
...
@@ -20,8 +20,6 @@
#ifndef MPD_INOTIFY_UPDATE_HXX
#define MPD_INOTIFY_UPDATE_HXX
#include "util/Compiler.h"
class
EventLoop
;
class
Storage
;
class
UpdateService
;
...
...
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