Don't use __ in defines or declarations, it's reserved

SPA_TYPE -> SPA_TYPE_INFO for type info strings
improve includes

Fixes #115
This commit is contained in:
Wim Taymans 2019-01-14 12:58:23 +01:00
parent 6856f02cab
commit 3dc6820e9e
146 changed files with 890 additions and 951 deletions

View file

@ -22,8 +22,8 @@
* DEALINGS IN THE SOFTWARE.
*/
#ifndef __SPA_CPU_H__
#define __SPA_CPU_H__
#ifndef SPA_CPU_H
#define SPA_CPU_H
#ifdef __cplusplus
extern "C" {
@ -102,4 +102,4 @@ struct spa_cpu {
} /* extern "C" */
#endif
#endif /* __SPA_CPU_H__ */
#endif /* SPA_CPU_H */

View file

@ -22,8 +22,8 @@
* DEALINGS IN THE SOFTWARE.
*/
#ifndef __SPA_DBUS_H__
#define __SPA_DBUS_H__
#ifndef SPA_DBUS_H
#define SPA_DBUS_H
#ifdef __cplusplus
extern "C" {
@ -86,4 +86,4 @@ struct spa_dbus {
} /* extern "C" */
#endif
#endif /* __SPA_DBUS_H__ */
#endif /* SPA_DBUS_H */

View file

@ -22,8 +22,8 @@
* DEALINGS IN THE SOFTWARE.
*/
#ifndef __SPA_LOG_IMPL_H__
#define __SPA_LOG_IMPL_H__
#ifndef SPA_LOG_IMPL_H
#define SPA_LOG_IMPL_H
#ifdef __cplusplus
extern "C" {
@ -80,4 +80,4 @@ struct { \
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /* __SPA_LOG_IMPL_H__ */
#endif /* SPA_LOG_IMPL_H */

View file

@ -22,8 +22,8 @@
* DEALINGS IN THE SOFTWARE.
*/
#ifndef __SPA_LOG_H__
#define __SPA_LOG_H__
#ifndef SPA_LOG_H
#define SPA_LOG_H
#ifdef __cplusplus
extern "C" {
@ -138,4 +138,4 @@ SPA_LOG_FUNC(trace, SPA_LOG_LEVEL_TRACE)
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /* __SPA_LOG_H__ */
#endif /* SPA_LOG_H */

View file

@ -22,8 +22,8 @@
* DEALINGS IN THE SOFTWARE.
*/
#ifndef __SPA_LOOP_H__
#define __SPA_LOOP_H__
#ifndef SPA_LOOP_H
#define SPA_LOOP_H
#ifdef __cplusplus
extern "C" {
@ -232,4 +232,4 @@ struct spa_loop_utils {
} /* extern "C" */
#endif
#endif /* __SPA_LOOP_H__ */
#endif /* SPA_LOOP_H */

View file

@ -22,8 +22,8 @@
* DEALINGS IN THE SOFTWARE.
*/
#ifndef __SPA_PLUGIN_H__
#define __SPA_PLUGIN_H__
#ifndef SPA_PLUGIN_H
#define SPA_PLUGIN_H
#ifdef __cplusplus
extern "C" {
@ -190,4 +190,4 @@ int spa_handle_factory_enum(const struct spa_handle_factory **factory, uint32_t
} /* extern "C" */
#endif
#endif /* __SPA_PLUGIN_H__ */
#endif /* SPA_PLUGIN_H */