1
0
mirror of https://gitlab.xiph.org/xiph/icecast-common.git synced 2024-12-04 14:46:31 -05:00

Update: Added extern "C" {}-blocks

This commit is contained in:
Philipp Schafft 2018-11-02 11:29:00 +00:00
parent 54af22a405
commit b1979946c4
8 changed files with 64 additions and 0 deletions

View File

@ -25,6 +25,10 @@
#ifndef _LIBIGLOO__ENCODING_H_
#define _LIBIGLOO__ENCODING_H_
#ifdef __cplusplus
extern "C" {
#endif
#include <sys/types.h>
/* known encodings */
@ -86,4 +90,8 @@ ssize_t igloo_httpp_encoding_pending(igloo_httpp_encoding_t *self);
*/
int igloo_httpp_encoding_append_meta(igloo_httpp_encoding_t *self, httpp_meta_t *meta);
#ifdef __cplusplus
}
#endif
#endif

View File

@ -27,6 +27,10 @@
#ifndef _LIBIGLOO__HTTPP_H_
#define _LIBIGLOO__HTTPP_H_
#ifdef __cplusplus
extern "C" {
#endif
#include <igloo/avl.h>
#define igloo_HTTPP_VAR_PROTOCOL "__protocol"
@ -124,4 +128,8 @@ int igloo_httpp_release(igloo_http_parser_t *parser);
/* util functions */
igloo_httpp_request_type_e igloo_httpp_str_to_method(const char * method);
#ifdef __cplusplus
}
#endif
#endif

View File

@ -23,6 +23,14 @@
* Put a good description of this file here
*/
#ifdef __cplusplus
extern "C" {
#endif
/* Put stuff here */
#ifdef __cplusplus
}
#endif
#endif /* ! IGLOO_H */

View File

@ -29,6 +29,10 @@
#ifndef _LIBIGLOO__LOG_H_
#define _LIBIGLOO__LOG_H_
#ifdef __cplusplus
extern "C" {
#endif
#include <stdio.h>
#define igloo_LOG_EINSANE -1
@ -62,4 +66,8 @@ void igloo_log_write(int log_id, unsigned priority, const char *cat, const char
const char *fmt, ...);
void igloo_log_write_direct(int log_id, const char *fmt, ...);
#ifdef __cplusplus
}
#endif
#endif /* __LOG_H__ */

View File

@ -27,6 +27,10 @@
#ifndef _LIBIGLOO__RESOLVER_H_
#define _LIBIGLOO__RESOLVER_H_
#ifdef __cplusplus
extern "C" {
#endif
/*
** resolver_lookup
@ -45,6 +49,10 @@ void igloo_resolver_shutdown(void);
char *igloo_resolver_getname(const char *ip, char *buff, int len);
char *igloo_resolver_getip(const char *name, char *buff, int len);
#ifdef __cplusplus
}
#endif
#endif

View File

@ -28,6 +28,10 @@
#ifndef _LIBIGLOO__SOCK_H_
#define _LIBIGLOO__SOCK_H_
#ifdef __cplusplus
extern "C" {
#endif
#include <igloo/config.h>
#include <stdarg.h>
@ -120,4 +124,8 @@ igloo_sock_t igloo_sock_accept(igloo_sock_t serversock, char *ip, size_t len);
int inet_aton(const char *s, struct in_addr *a);
#endif
#ifdef __cplusplus
}
#endif
#endif /* __SOCK_H */

View File

@ -27,6 +27,10 @@
#ifndef _LIBIGLOO__THREAD_H_
#define _LIBIGLOO__THREAD_H_
#ifdef __cplusplus
extern "C" {
#endif
#include <igloo/config.h>
#include <pthread.h>
@ -178,4 +182,8 @@ void igloo_thread_rename(const char *name);
/* waits until thread_exit is called for another thread */
void igloo_thread_join(igloo_thread_type *thread);
#ifdef __cplusplus
}
#endif
#endif /* __THREAD_H__ */

View File

@ -28,6 +28,10 @@
#ifndef _LIBIGLOO__TIMING_H_
#define _LIBIGLOO__TIMING_H_
#ifdef __cplusplus
extern "C" {
#endif
#include <igloo/config.h>
#include <sys/types.h>
@ -45,4 +49,8 @@ typedef unsigned __int64 uint64_t;
uint64_t igloo_timing_get_time(void);
void igloo_timing_sleep(uint64_t sleeptime);
#ifdef __cplusplus
}
#endif
#endif /* __TIMING_H__ */