output_internal, ...: add extern "C"
This commit is contained in:
parent
4808c7ef39
commit
5822daa63d
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user