]> git.alsa-project.org Git - alsa-gobject.git/commitdiff
ctl: generate documentation
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Thu, 21 Nov 2019 04:13:58 +0000 (13:13 +0900)
committerTakashi Sakamoto <o-takashi@sakamocchi.jp>
Thu, 12 Dec 2019 05:29:12 +0000 (14:29 +0900)
doc/meson.build [new file with mode: 0644]
doc/reference/ctl/alsactl-docs.xml [new file with mode: 0644]
doc/reference/ctl/alsactl.types [new file with mode: 0644]
doc/reference/ctl/meson.build [new file with mode: 0644]
doc/reference/meson.build [new file with mode: 0644]
doc/reference/version.xml.in [new file with mode: 0644]
meson.build
meson_options.txt [new file with mode: 0644]

diff --git a/doc/meson.build b/doc/meson.build
new file mode 100644 (file)
index 0000000..2e2fe14
--- /dev/null
@@ -0,0 +1,3 @@
+if get_option('gtk_doc')
+  subdir('reference')
+endif
diff --git a/doc/reference/ctl/alsactl-docs.xml b/doc/reference/ctl/alsactl-docs.xml
new file mode 100644 (file)
index 0000000..16d0e67
--- /dev/null
@@ -0,0 +1,48 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
+                      "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+<!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+<!ENTITY version SYSTEM "../version.xml">
+]>
+
+<book id="index" xmlns:xi="http://www.w3.org/2003/XInclude">
+    <bookinfo>
+        <title>ALSACtl Reference Manual</title>
+    <releaseinfo>This document is for the ALSACtl library, version &version;.
+    </releaseinfo>
+    </bookinfo>
+
+    <chapter id="alsactl-enumerations">
+        <title>ALSACtl enumerations</title>
+        <xi:include href="xml/alsactl-enum-types.xml"/>
+    </chapter>
+
+    <chapter id="alsactl-global-methods">
+        <title>ALSACtl global methods</title>
+        <xi:include href="xml/query.xml"/>
+    </chapter>
+
+    <chapter id="alsactl-objects">
+        <title>ALSACtl objects</title>
+        <xi:include href="xml/card.xml"/>
+       <xi:include href="xml/alsactl-sigs-marshal.xml"/>
+        <xi:include href="xml/card-info.xml"/>
+        <xi:include href="xml/elem-id.xml"/>
+        <xi:include href="xml/elem-info.xml"/>
+        <xi:include href="xml/elem-info-bool.xml"/>
+        <xi:include href="xml/elem-info-int.xml"/>
+        <xi:include href="xml/elem-info-enum.xml"/>
+        <xi:include href="xml/elem-info-bytes.xml"/>
+        <xi:include href="xml/elem-info-iec60958.xml"/>
+        <xi:include href="xml/elem-info-int64.xml"/>
+        <xi:include href="xml/elem-value.xml"/>
+    </chapter>
+
+    <index id="index-all">
+        <title>Index of all symbols</title>
+        <xi:include href="xml/api-index-full.xml"><xi:fallback /></xi:include>
+    </index>
+
+    <xi:include href="xml/annotation-glossary.xml"><xi:fallback /></xi:include>
+
+</book>
diff --git a/doc/reference/ctl/alsactl.types b/doc/reference/ctl/alsactl.types
new file mode 100644 (file)
index 0000000..64fb51f
--- /dev/null
@@ -0,0 +1,16 @@
+alsactl_elem_type_get_type
+alsactl_elem_iface_type_get_type
+alsactl_elem_access_flag_get_type
+alsactl_event_type_get_type
+alsactl_event_mask_flag_get_type
+alsactl_card_get_type
+alsactl_card_info_get_type
+alsactl_elem_id_get_type
+alsactl_elem_info_get_type
+alsactl_elem_info_bool_get_type
+alsactl_elem_info_int_get_type
+alsactl_elem_info_enum_get_type
+alsactl_elem_info_bytes_get_type
+alsactl_elem_info_iec60958_get_type
+alsactl_elem_info_int64_get_type
+alsactl_elem_value_get_type
diff --git a/doc/reference/ctl/meson.build b/doc/reference/ctl/meson.build
new file mode 100644 (file)
index 0000000..40bf47f
--- /dev/null
@@ -0,0 +1,10 @@
+gnome.gtkdoc('alsactl',
+  src_dir : alsactl_dir,
+  main_xml : 'alsactl-docs.xml',
+  scan_args: [
+    '--ignore-headers=privates.h',
+  ],
+  gobject_typesfile: 'alsactl.types',
+  dependencies: alsactl_dependency,
+  install : true,
+)
diff --git a/doc/reference/meson.build b/doc/reference/meson.build
new file mode 100644 (file)
index 0000000..6ee74d8
--- /dev/null
@@ -0,0 +1,10 @@
+conf = configuration_data()
+conf.set('VERSION', meson.project_version())
+
+configure_file(
+  input : 'version.xml.in',
+  output : 'version.xml',
+  configuration : conf,
+)
+
+subdir('ctl')
diff --git a/doc/reference/version.xml.in b/doc/reference/version.xml.in
new file mode 100644 (file)
index 0000000..d78bda9
--- /dev/null
@@ -0,0 +1 @@
+@VERSION@
index 9f9ff0bf7067e1accfe88c5399ebcbaa1b7aebf7..2a7b10ec6801405fba9140f1556eabf4f5f91951 100644 (file)
@@ -7,3 +7,4 @@ gnome = import('gnome')
 
 subdir('src')
 subdir('tests')
+subdir('doc')
diff --git a/meson_options.txt b/meson_options.txt
new file mode 100644 (file)
index 0000000..9cbd3c2
--- /dev/null
@@ -0,0 +1,5 @@
+option('gtk_doc',
+  type: 'boolean',
+  value: false,
+  description: 'generate API reference',
+)