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
dd33317f
Commit
dd33317f
authored
Sep 14, 2011
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
input_stream: move input_stream_init(), _deinit() to _internal.c
parent
c344d63f
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
89 additions
and
20 deletions
+89
-20
Makefile.am
Makefile.am
+1
-0
bz2_archive_plugin.c
src/archive/bz2_archive_plugin.c
+1
-0
iso9660_archive_plugin.c
src/archive/iso9660_archive_plugin.c
+1
-0
zzip_archive_plugin.c
src/archive/zzip_archive_plugin.c
+1
-0
cdio_paranoia_input_plugin.c
src/input/cdio_paranoia_input_plugin.c
+1
-0
curl_input_plugin.c
src/input/curl_input_plugin.c
+1
-0
despotify_input_plugin.c
src/input/despotify_input_plugin.c
+1
-0
ffmpeg_input_plugin.c
src/input/ffmpeg_input_plugin.c
+1
-0
file_input_plugin.c
src/input/file_input_plugin.c
+1
-0
mms_input_plugin.c
src/input/mms_input_plugin.c
+1
-0
rewind_input_plugin.c
src/input/rewind_input_plugin.c
+1
-0
soup_input_plugin.c
src/input/soup_input_plugin.c
+1
-0
input_internal.c
src/input_internal.c
+42
-0
input_internal.h
src/input_internal.h
+35
-0
input_stream.h
src/input_stream.h
+0
-20
No files found.
Makefile.am
View file @
dd33317f
...
...
@@ -658,6 +658,7 @@ INPUT_SRC = \
src/input_init.c
\
src/input_registry.c
\
src/input_stream.c
\
src/input_internal.c src/input_internal.h
\
src/input/rewind_input_plugin.c
\
src/input/file_input_plugin.c
...
...
src/archive/bz2_archive_plugin.c
View file @
dd33317f
...
...
@@ -24,6 +24,7 @@
#include "config.h"
#include "archive/bz2_archive_plugin.h"
#include "archive_api.h"
#include "input_internal.h"
#include "input_plugin.h"
#include "refcount.h"
...
...
src/archive/iso9660_archive_plugin.c
View file @
dd33317f
...
...
@@ -24,6 +24,7 @@
#include "config.h"
#include "archive/iso9660_archive_plugin.h"
#include "archive_api.h"
#include "input_internal.h"
#include "input_plugin.h"
#include "refcount.h"
...
...
src/archive/zzip_archive_plugin.c
View file @
dd33317f
...
...
@@ -25,6 +25,7 @@
#include "archive/zzip_archive_plugin.h"
#include "archive_api.h"
#include "archive_api.h"
#include "input_internal.h"
#include "input_plugin.h"
#include "refcount.h"
...
...
src/input/cdio_paranoia_input_plugin.c
View file @
dd33317f
...
...
@@ -23,6 +23,7 @@
#include "config.h"
#include "input/cdio_paranoia_input_plugin.h"
#include "input_internal.h"
#include "input_plugin.h"
#include "refcount.h"
#include "pcm_buffer.h"
...
...
src/input/curl_input_plugin.c
View file @
dd33317f
...
...
@@ -19,6 +19,7 @@
#include "config.h"
#include "input/curl_input_plugin.h"
#include "input_internal.h"
#include "input_plugin.h"
#include "conf.h"
#include "tag.h"
...
...
src/input/despotify_input_plugin.c
View file @
dd33317f
...
...
@@ -19,6 +19,7 @@
#include "config.h"
#include "input/despotify_input_plugin.h"
#include "input_internal.h"
#include "input_plugin.h"
#include "tag.h"
#include "despotify_utils.h"
...
...
src/input/ffmpeg_input_plugin.c
View file @
dd33317f
...
...
@@ -19,6 +19,7 @@
#include "config.h"
#include "input/ffmpeg_input_plugin.h"
#include "input_internal.h"
#include "input_plugin.h"
#include <libavformat/avio.h>
...
...
src/input/file_input_plugin.c
View file @
dd33317f
...
...
@@ -19,6 +19,7 @@
#include "config.h"
/* must be first for large file support */
#include "input/file_input_plugin.h"
#include "input_internal.h"
#include "input_plugin.h"
#include "fd_util.h"
#include "open.h"
...
...
src/input/mms_input_plugin.c
View file @
dd33317f
...
...
@@ -19,6 +19,7 @@
#include "config.h"
#include "input/mms_input_plugin.h"
#include "input_internal.h"
#include "input_plugin.h"
#include <glib.h>
...
...
src/input/rewind_input_plugin.c
View file @
dd33317f
...
...
@@ -19,6 +19,7 @@
#include "config.h"
#include "input/rewind_input_plugin.h"
#include "input_internal.h"
#include "input_plugin.h"
#include "tag.h"
...
...
src/input/soup_input_plugin.c
View file @
dd33317f
...
...
@@ -19,6 +19,7 @@
#include "config.h"
#include "input/soup_input_plugin.h"
#include "input_internal.h"
#include "input_plugin.h"
#include "io_thread.h"
#include "conf.h"
...
...
src/input_internal.c
0 → 100644
View file @
dd33317f
/*
* Copyright (C) 2003-2011 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.
*/
#include "config.h"
#include "input_internal.h"
#include "input_stream.h"
void
input_stream_init
(
struct
input_stream
*
is
,
const
struct
input_plugin
*
plugin
,
const
char
*
uri
)
{
is
->
plugin
=
plugin
;
is
->
uri
=
g_strdup
(
uri
);
is
->
ready
=
false
;
is
->
seekable
=
false
;
is
->
size
=
-
1
;
is
->
offset
=
0
;
is
->
mime
=
NULL
;
}
void
input_stream_deinit
(
struct
input_stream
*
is
)
{
g_free
(
is
->
uri
);
g_free
(
is
->
mime
);
}
src/input_internal.h
0 → 100644
View file @
dd33317f
/*
* Copyright (C) 2003-2011 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_INPUT_INTERNAL_H
#define MPD_INPUT_INTERNAL_H
#include "check.h"
struct
input_stream
;
struct
input_plugin
;
void
input_stream_init
(
struct
input_stream
*
is
,
const
struct
input_plugin
*
plugin
,
const
char
*
uri
);
void
input_stream_deinit
(
struct
input_stream
*
is
);
#endif
src/input_stream.h
View file @
dd33317f
...
...
@@ -71,26 +71,6 @@ struct input_stream {
char
*
mime
;
};
static
inline
void
input_stream_init
(
struct
input_stream
*
is
,
const
struct
input_plugin
*
plugin
,
const
char
*
uri
)
{
is
->
plugin
=
plugin
;
is
->
uri
=
g_strdup
(
uri
);
is
->
ready
=
false
;
is
->
seekable
=
false
;
is
->
size
=
-
1
;
is
->
offset
=
0
;
is
->
mime
=
NULL
;
}
static
inline
void
input_stream_deinit
(
struct
input_stream
*
is
)
{
g_free
(
is
->
uri
);
g_free
(
is
->
mime
);
}
/**
* Opens a new input stream. You may not access it until the "ready"
* flag is set.
...
...
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