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
5822daa6
Commit
5822daa6
authored
Jan 15, 2013
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
output_internal, ...: add extern "C"
parent
4808c7ef
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
56 additions
and
0 deletions
+56
-0
encoder_list.h
src/encoder_list.h
+8
-0
icy_server.h
src/icy_server.h
+8
-0
output_internal.h
src/output_internal.h
+8
-0
page.h
src/page.h
+8
-0
resolver.h
src/resolver.h
+8
-0
server_socket.h
src/server_socket.h
+8
-0
timer.h
src/timer.h
+8
-0
No files found.
src/encoder_list.h
View file @
5822daa6
...
...
@@ -30,6 +30,10 @@ extern const struct encoder_plugin *const encoder_plugins[];
(plugin = *encoder_plugin_iterator) != NULL; \
++encoder_plugin_iterator)
#ifdef __cplusplus
extern
"C"
{
#endif
/**
* Looks up an encoder plugin by its name.
*
...
...
@@ -40,4 +44,8 @@ extern const struct encoder_plugin *const encoder_plugins[];
const
struct
encoder_plugin
*
encoder_plugin_get
(
const
char
*
name
);
#ifdef __cplusplus
}
#endif
#endif
src/icy_server.h
View file @
5822daa6
...
...
@@ -25,6 +25,10 @@
#include <stdarg.h>
#ifdef __cplusplus
extern
"C"
{
#endif
char
*
icy_server_metadata_header
(
const
char
*
name
,
const
char
*
genre
,
const
char
*
url
,
...
...
@@ -33,4 +37,8 @@ icy_server_metadata_header(const char *name,
struct
page
*
icy_server_metadata_page
(
const
struct
tag
*
tag
,
...);
#ifdef __cplusplus
}
#endif
#endif
src/output_internal.h
View file @
5822daa6
...
...
@@ -257,6 +257,10 @@ audio_output_command_is_finished(const struct audio_output *ao)
return
ao
->
command
==
AO_COMMAND_NONE
;
}
#ifdef __cplusplus
extern
"C"
{
#endif
struct
audio_output
*
audio_output_new
(
const
struct
config_param
*
param
,
struct
player_control
*
pc
,
...
...
@@ -273,4 +277,8 @@ ao_base_finish(struct audio_output *ao);
void
audio_output_free
(
struct
audio_output
*
ao
);
#ifdef __cplusplus
}
#endif
#endif
src/page.h
View file @
5822daa6
...
...
@@ -53,6 +53,10 @@ struct page {
unsigned
char
data
[
sizeof
(
long
)];
};
#ifdef __cplusplus
extern
"C"
{
#endif
/**
* Creates a new #page object, and copies data from the specified
* buffer. It is initialized with a reference count of 1.
...
...
@@ -91,4 +95,8 @@ page_ref(struct page *page);
bool
page_unref
(
struct
page
*
page
);
#ifdef __cplusplus
}
#endif
#endif
src/resolver.h
View file @
5822daa6
...
...
@@ -34,6 +34,10 @@ resolver_quark(void)
return
g_quark_from_static_string
(
"resolver"
);
}
#ifdef __cplusplus
extern
"C"
{
#endif
/**
* Converts the specified socket address into a string in the form
* "IP:PORT". The return value must be freed with g_free() when you
...
...
@@ -63,4 +67,8 @@ resolve_host_port(const char *host_port, unsigned default_port,
int
flags
,
int
socktype
,
GError
**
error_r
);
#ifdef __cplusplus
}
#endif
#endif
src/server_socket.h
View file @
5822daa6
...
...
@@ -32,6 +32,10 @@ typedef void (*server_socket_callback_t)(int fd,
size_t
address_length
,
int
uid
,
void
*
ctx
);
#ifdef __cplusplus
extern
"C"
{
#endif
struct
server_socket
*
server_socket_new
(
server_socket_callback_t
callback
,
void
*
callback_ctx
);
...
...
@@ -90,4 +94,8 @@ bool
server_socket_add_path
(
struct
server_socket
*
ss
,
const
char
*
path
,
GError
**
error_r
);
#ifdef __cplusplus
}
#endif
#endif
src/timer.h
View file @
5822daa6
...
...
@@ -30,6 +30,10 @@ struct timer {
int
rate
;
};
#ifdef __cplusplus
extern
"C"
{
#endif
struct
timer
*
timer_new
(
const
struct
audio_format
*
af
);
void
timer_free
(
struct
timer
*
timer
);
...
...
@@ -48,4 +52,8 @@ timer_delay(const struct timer *timer);
void
timer_sync
(
struct
timer
*
timer
);
#ifdef __cplusplus
}
#endif
#endif
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