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
7b343eaf
Commit
7b343eaf
authored
Oct 24, 2009
by
Viliam Mateicka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add --disable-inotify for configure to disable inotify when autodetected
parent
ac830468
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
2 deletions
+27
-2
Makefile.am
Makefile.am
+1
-1
configure.ac
configure.ac
+19
-1
main.c
src/main.c
+7
-0
No files found.
Makefile.am
View file @
7b343eaf
...
...
@@ -294,7 +294,7 @@ src_mpd_SOURCES = \
src/stored_playlist.c
\
src/timer.c
if
HAV
E_INOTIFY
if
ENABL
E_INOTIFY
src_mpd_SOURCES
+=
\
src/inotify_source.c
\
src/inotify_queue.c
\
...
...
configure.ac
View file @
7b343eaf
...
...
@@ -121,8 +121,19 @@ AC_CHECK_HEADERS(locale.h)
AC_CHECK_HEADERS(valgrind/memcheck.h)
AC_CHECK_FUNCS(inotify_init)
AM_CONDITIONAL(HAVE_INOTIFY, test x$ac_cv_func_inotify_init = xyes)
AC_ARG_ENABLE(inotify,
AS_HELP_STRING([--disable-inotify],
[disable support Inotify automatic database update (default: enabled) ]),,
[enable_inotify=yes])
if test x$ac_cv_func_inotify_init = xno; then
enable_inotify=no
fi
if test x$enable_inotify = xyes; then
AC_DEFINE([ENABLE_INOTIFY], 1, [Define to enable inotify support])
fi
AM_CONDITIONAL(ENABLE_INOTIFY, test x$enable_inotify = xyes)
dnl
dnl mandatory libraries
...
...
@@ -273,6 +284,7 @@ fi
AM_CONDITIONAL(ENABLE_SQLITE, test x$enable_sqlite = xyes)
dnl
dnl input plugins
dnl
...
...
@@ -1624,6 +1636,12 @@ else
echo " libcue support ................disabled"
fi
if test x$enable_inotify = xyes; then
echo " Inotify support (autoupdate) ..enabled"
else
echo " Inotify support (autoupdate) ..disabled"
fi
echo ""
echo "##########################################"
echo ""
...
...
src/main.c
View file @
7b343eaf
...
...
@@ -56,7 +56,10 @@
#include "dirvec.h"
#include "songvec.h"
#include "tag_pool.h"
#ifdef ENABLE_INOTIFY
#include "inotify_update.h"
#endif
#ifdef ENABLE_SQLITE
#include "sticker.h"
...
...
@@ -369,8 +372,10 @@ int main(int argc, char *argv[])
glue_state_file_init
();
#ifdef ENABLE_INOTIFY
if
(
mapper_has_music_directory
())
mpd_inotify_init
();
#endif
config_global_check
();
...
...
@@ -386,7 +391,9 @@ int main(int argc, char *argv[])
g_main_loop_unref
(
main_loop
);
#ifdef ENABLE_INOTIFY
mpd_inotify_finish
();
#endif
state_file_finish
();
pc_kill
();
...
...
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