From: Takashi Sakamoto Date: Wed, 16 Mar 2022 00:03:48 +0000 (+0900) Subject: hwdep: add entry header to aggregate header inclusion X-Git-Tag: v0.3.0~255 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=69c09d05dc54648f18a50fa63c73545142d935cc;p=alsa-gobject.git hwdep: add entry header to aggregate header inclusion It's convenient to add header to include all of headers in regard of documentation. Signed-off-by: Takashi Sakamoto --- diff --git a/src/hwdep/alsahwdep-enum-types.h b/src/hwdep/alsahwdep-enum-types.h index b511666..0c2ebbf 100644 --- a/src/hwdep/alsahwdep-enum-types.h +++ b/src/hwdep/alsahwdep-enum-types.h @@ -2,7 +2,6 @@ #ifndef __ALSA_GOBJECT_ALSAHWDEP_ENUM_TYPES__H__ #define __ALSA_GOBJECT_ALSAHWDEP_ENUM_TYPES__H__ -#include #include #if LINUX_VERSION_CODE < KERNEL_VERSION(4,9,0) diff --git a/src/hwdep/alsahwdep.h b/src/hwdep/alsahwdep.h new file mode 100644 index 0000000..cd2c2da --- /dev/null +++ b/src/hwdep/alsahwdep.h @@ -0,0 +1,17 @@ +// SPDX-License-Identifier: LGPL-3.0-or-later +#ifndef __ALSA_GOBJECT_ALSAHWDEP_H__ +#define __ALSA_GOBJECT_ALSAHWDEP_H__ + +#include +#include + +#include + +#include +#include + +#include + +#include + +#endif diff --git a/src/hwdep/device-info.h b/src/hwdep/device-info.h index faee53f..3e6a417 100644 --- a/src/hwdep/device-info.h +++ b/src/hwdep/device-info.h @@ -2,10 +2,7 @@ #ifndef __ALSA_GOBJECT_ALSAHWDEP_DEVICE_INFO__H__ #define __ALSA_GOBJECT_ALSAHWDEP_DEVICE_INFO__H__ -#include -#include - -#include +#include G_BEGIN_DECLS diff --git a/src/hwdep/meson.build b/src/hwdep/meson.build index cdbbbb8..d02b382 100644 --- a/src/hwdep/meson.build +++ b/src/hwdep/meson.build @@ -9,17 +9,18 @@ has_enumerations = true has_marshaller = false sources = files( - 'query.c', - 'device-info.c', + 'query.c', + 'device-info.c', ) headers = files( - 'query.h', - 'device-info.h', + 'alsahwdep.h', + 'query.h', + 'device-info.h', ) privates = files( - 'privates.h', + 'privates.h', ) # For test. @@ -53,7 +54,7 @@ if has_enumerations identifier_prefix: namespace, install_header: true, install_dir: join_paths(get_option('includedir'), inc_dir), - header_prefix: '#include <@0@-enum-types.h>'.format(join_paths(path, name)), + header_prefix: '#include ', ) else enums = [] @@ -85,7 +86,7 @@ library = library(name, dependencies: dependencies, link_args : linker_flag, link_depends : mapfile_name, - include_directories: include_directories('..'), + include_directories: include_directories('.'), ) install_headers(headers, @@ -96,7 +97,7 @@ install_headers(headers, pkg = import('pkgconfig') pkg.generate(library, description: 'GObject instrospection library for HwDep interface in asound.h', - subdirs: meson.project_name(), + subdirs: inc_dir, ) # Generate metadata for gobject introspection. @@ -112,6 +113,7 @@ gnome.generate_gir(library, 'GLib-2.0', 'GObject-2.0', ], + header: 'alsahwdep.h', install: true, ) diff --git a/src/hwdep/privates.h b/src/hwdep/privates.h index e94070c..ee3f38d 100644 --- a/src/hwdep/privates.h +++ b/src/hwdep/privates.h @@ -2,9 +2,7 @@ #ifndef __ALSA_GOBJECT_ALSAHWDEP_PRIVATES__H__ #define __ALSA_GOBJECT_ALSAHWDEP_PRIVATES__H__ -#include "device-info.h" - -#include +#include "alsahwdep.h" G_BEGIN_DECLS diff --git a/src/hwdep/query.c b/src/hwdep/query.c index 3298c19..9731ab8 100644 --- a/src/hwdep/query.c +++ b/src/hwdep/query.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: LGPL-3.0-or-later -#include "query.h" #include "privates.h" #include diff --git a/src/hwdep/query.h b/src/hwdep/query.h index 58369d4..1137640 100644 --- a/src/hwdep/query.h +++ b/src/hwdep/query.h @@ -2,10 +2,7 @@ #ifndef __ALSA_GOBJECT_ALSAHWDEP_QUERY__H__ #define __ALSA_GOBJECT_ALSAHWDEP_QUERY__H__ -#include -#include - -#include +#include G_BEGIN_DECLS