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
ddf7f5c1
Commit
ddf7f5c1
authored
Jun 13, 2012
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update_internal.h: split header
parent
660e40d0
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
51 additions
and
22 deletions
+51
-22
Makefile.am
Makefile.am
+2
-3
update.c
src/update.c
+6
-1
update_queue.c
src/update_queue.c
+1
-1
update_queue.h
src/update_queue.h
+33
-0
update_walk.c
src/update_walk.c
+4
-1
update_walk.h
src/update_walk.h
+5
-16
No files found.
Makefile.am
View file @
ddf7f5c1
...
...
@@ -89,7 +89,6 @@ mpd_headers = \
src/fd_util.h
\
src/glib_compat.h
\
src/update.h
\
src/update_internal.h
\
src/inotify_source.h
\
src/inotify_queue.h
\
src/inotify_update.h
\
...
...
@@ -266,10 +265,10 @@ src_mpd_SOURCES = \
src/filter_plugin.c
\
src/filter_registry.c
\
src/update.c
\
src/update_queue.c
\
src/update_queue.c
src/update_queue.h
\
src/update_io.c src/update_io.h
\
src/update_db.c src/update_db.h
\
src/update_walk.c
\
src/update_walk.c
src/update_walk.h
\
src/update_remove.c
\
src/client.c
\
src/client_event.c
\
...
...
src/update.c
View file @
ddf7f5c1
...
...
@@ -18,7 +18,9 @@
*/
#include "config.h"
#include "update_internal.h"
#include "update.h"
#include "update_queue.h"
#include "update_walk.h"
#include "update_remove.h"
#include "update.h"
#include "database.h"
...
...
@@ -35,6 +37,9 @@
#include <assert.h>
#undef G_LOG_DOMAIN
#define G_LOG_DOMAIN "update"
static
enum
update_progress
{
UPDATE_PROGRESS_IDLE
=
0
,
UPDATE_PROGRESS_RUNNING
=
1
,
...
...
src/update_queue.c
View file @
ddf7f5c1
...
...
@@ -18,7 +18,7 @@
*/
#include "config.h"
#include "update_
internal
.h"
#include "update_
queue
.h"
#include <glib.h>
...
...
src/update_queue.h
0 → 100644
View file @
ddf7f5c1
/*
* Copyright (C) 2003-2012 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_UPDATE_QUEUE_H
#define MPD_UPDATE_QUEUE_H
#include "check.h"
#include <stdbool.h>
unsigned
update_queue_push
(
const
char
*
path
,
bool
discard
,
unsigned
base
);
char
*
update_queue_shift
(
bool
*
discard_r
);
#endif
src/update_walk.c
View file @
ddf7f5c1
...
...
@@ -18,7 +18,7 @@
*/
#include "config.h"
/* must be first for large file support */
#include "update_
internal
.h"
#include "update_
walk
.h"
#include "update_io.h"
#include "update_db.h"
#include "database.h"
...
...
@@ -54,6 +54,9 @@
#include <stdlib.h>
#include <errno.h>
#undef G_LOG_DOMAIN
#define G_LOG_DOMAIN "update"
static
bool
walk_discard
;
static
bool
modified
;
...
...
src/update_
internal
.h
→
src/update_
walk
.h
View file @
ddf7f5c1
/*
* Copyright (C) 2003-201
1
The Music Player Daemon Project
* Copyright (C) 2003-201
2
The Music Player Daemon Project
* http://www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
...
...
@@ -17,23 +17,12 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef MPD_UPDATE_
INTERNAL
_H
#define MPD_UPDATE_
INTERNAL
_H
#ifndef MPD_UPDATE_
WALK
_H
#define MPD_UPDATE_
WALK
_H
#include <stdbool.h>
#undef G_LOG_DOMAIN
#define G_LOG_DOMAIN "update"
struct
stat
;
struct
song
;
struct
directory
;
#include "check.h"
unsigned
update_queue_push
(
const
char
*
path
,
bool
discard
,
unsigned
base
);
char
*
update_queue_shift
(
bool
*
discard_r
);
#include <stdbool.h>
void
update_walk_global_init
(
void
);
...
...
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