Add a doc check unit test and fix the issues it found
Testing Done:
Ran the unit tests.
Reviewed at https://reviews.imfreedom.org/r/3042/
--- a/xeme/reference/meson.build Sun Feb 18 01:46:40 2024 -0600
+++ b/xeme/reference/meson.build Wed Mar 20 23:28:27 2024 -0500
@@ -31,4 +31,14 @@
+ '--config', xeme_gidocgen_toml, --- a/xeme/reference/xeme.toml.in Sun Feb 18 01:46:40 2024 -0600
+++ b/xeme/reference/xeme.toml.in Wed Mar 20 23:28:27 2024 -0500
@@ -39,3 +39,27 @@
urlmap_file = "urlmap.js"
+pattern = "DEPRECATED_IN_*" +name = "UNAVAILABLE_MACRO" +name = "UNAVAILABLE_STATIC_INLINE" +name = "UNAVAILABLE_TYPE" \ No newline at end of file
--- a/xeme/xemeextension.h Sun Feb 18 01:46:40 2024 -0600
+++ b/xeme/xemeextension.h Wed Mar 20 23:28:27 2024 -0500
@@ -63,6 +63,8 @@
* Gets the name of the element from @extension.
+ * Returns: The name of the element of the extension. @@ -74,6 +76,8 @@
* Gets the namespace from @extension.
+ * Returns: The namespace of the extension. --- a/xeme/xemeextensionmap.h Sun Feb 18 01:46:40 2024 -0600
+++ b/xeme/xemeextensionmap.h Wed Mar 20 23:28:27 2024 -0500
@@ -48,6 +48,8 @@
* Creates a new extension map.
+ * Returns: (transfer full): The new instance. --- a/xeme/xemeinputstream.h Sun Feb 18 01:46:40 2024 -0600
+++ b/xeme/xemeinputstream.h Wed Mar 20 23:28:27 2024 -0500
@@ -30,8 +30,6 @@
-#define XEME_TYPE_INPUT_STREAM (xeme_input_stream_get_type())
@@ -40,6 +38,8 @@
+#define XEME_TYPE_INPUT_STREAM (xeme_input_stream_get_type()) G_DECLARE_DERIVABLE_TYPE(XemeInputStream, xeme_input_stream, XEME, INPUT_STREAM, XemeStream)
--- a/xeme/xememessage.h Sun Feb 18 01:46:40 2024 -0600
+++ b/xeme/xememessage.h Wed Mar 20 23:28:27 2024 -0500
@@ -26,16 +26,16 @@
-#define XEME_TYPE_MESSAGE (xeme_message_get_type())
- * An XMPP message stanza.
+ * An XMPP Message stanza. +#define XEME_TYPE_MESSAGE (xeme_message_get_type()) G_DECLARE_FINAL_TYPE(XemeMessage, xeme_message, XEME, MESSAGE, XemeStanza)
--- a/xeme/xemeoutputstream.h Sun Feb 18 01:46:40 2024 -0600
+++ b/xeme/xemeoutputstream.h Wed Mar 20 23:28:27 2024 -0500
@@ -28,16 +28,17 @@
-#define XEME_TYPE_OUTPUT_STREAM (xeme_output_stream_get_type())
- * A stream to send XMPP stanzas to a remote connection.
+ * An XMPP output stream. This is used to send stanzas to the other end of the +#define XEME_TYPE_OUTPUT_STREAM (xeme_output_stream_get_type()) G_DECLARE_FINAL_TYPE(XemeOutputStream, xeme_output_stream, XEME, OUTPUT_STREAM, XemeStream)
@@ -46,6 +47,7 @@
* @to: The jid of the recipient.
* @from: The jid of the sender.
* @cancellable: (nullable): A [class@Gio.Cancellable] for the stream.
* Creates a new output stream.
* Returns: (transfer full): The new instance.
--- a/xeme/xemestream.h Sun Feb 18 01:46:40 2024 -0600
+++ b/xeme/xemestream.h Wed Mar 20 23:28:27 2024 -0500
@@ -30,7 +30,7 @@
- * A basic UTF-8 XML Processing Instruction.
+ * A constant for the XML processing instruction with a UTF-8 encoding. @@ -39,7 +39,7 @@
- * The version of the XMPP stream.
+ * The version of the XMPP stream protocol. @@ -48,7 +48,7 @@
- * The value for the default namespace of the XML document.
+ * The XML namespace that is used as the default namespace for the stream. @@ -57,7 +57,7 @@
* XEME_STREAM_XMLNS_STREAM:
- * The value for the stream namespace of the XML document.
+ * The XML namespace that is used for the `streams` namespace. @@ -66,13 +66,11 @@
- * A base class for representing XMPP streams.
- * This mostly just contains common properties that are needed by
- * [class@InputStream] and [class@OutputStream].
+ * A base class for all streams. #define XEME_TYPE_STREAM (xeme_stream_get_type())
--- a/xeme/xemeversion.h Sun Feb 18 01:46:40 2024 -0600
+++ b/xeme/xemeversion.h Wed Mar 20 23:28:27 2024 -0500
@@ -45,54 +45,6 @@
#define _XEME_EXTERN _XEME_API extern
- * Used to mark a symbol as deprecated.
- * @f: The new symbol to use.
- * Marks a symbol as deprecated and causes a warning to be displayed that says
- * that @f replaces the deprecated symbol.
- * @maj: The major version when this symbol was introduced.
- * @min: The minor version when this symbol was introduced.
- * Marks a symbol as unavailable before version @maj.@min.
- * XEME_UNAVAILABLE_STATIC_INLINE:
- * @maj: The major version when this static inline was introduced.
- * @min: The minor version when this static inline was introduced.
- * Marks a static inline function as unavailable before version @maj.@min.
- * XEME_UNAVAILABLE_TYPE:
- * @maj: The major version when this type was introduced.
- * @min: The minor version when this type was introduced.
- * Marks a type as unavailable before version @maj.@min.
#ifdef XEME_DISABLE_DEPRECATION_WARNINGS
#define XEME_DEPRECATED _XEME_EXTERN
#define XEME_DEPRECATED_FOR(f) _XEME_EXTERN
@@ -108,6 +60,26 @@
+ * XEME_VERSION_MIN_REQUIRED: + * A macro that should be defined by the user prior to including the `xeme.h` + * The definition should be one of the predefined Xeme version macros: + * %XEME_VERSION_0_1, %XEME_VERSION_0_2, ... + * This macro defines the earliest version of Xeme that the package is required + * to be able to compile against. + * If the compiler is configured to warn about the use of deprecated functions, + * then using functions that were deprecated in version + * %XEME_VERSION_MIN_REQUIRED or earlier will cause warnings (but using + * functions deprecated in later releases will not). * XEME_VERSION_CUR_STABLE:
* A macro that evaluates to the current stable version of xeme, in a format
@@ -118,17 +90,6 @@
#define XEME_VERSION_CUR_STABLE \
(G_ENCODE_VERSION(XEME_MAJOR_VERSION, XEME_MINOR_VERSION))
- * XEME_VERSION_MIN_REQUIRED:
- * The minimum required version of Xeme.
- * Users should set this to help identify which symbols are available during
- * If [const@VERSION_MIN_REQUIRED] is set to some future `XEME_VERSION_X_Y`
- * value that isn't known, it will compare as 0 in preprocessor tests.
#ifndef XEME_VERSION_MIN_REQUIRED
#define XEME_VERSION_MIN_REQUIRED (XEME_VERSION_CUR_STABLE)
#elif XEME_VERSION_MIN_REQUIRED == 0