summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2023-09-23 14:18:44 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2023-09-23 15:18:32 +0100
commit5de85afb7552d9a99a146621cbdfe32df1172a43 (patch)
tree04e4b6a20bbaedc5151ed0e3502bd27b05a7a8a5
parente4aa193008a3160af95ee9f54ba6459907136495 (diff)
docs: Add docblocks for missing feature defines
-rw-r--r--src/cairo-pattern.c8
-rw-r--r--src/cairo-quartz-image-surface.c11
-rw-r--r--src/cairo-xcb-shm.c9
-rw-r--r--src/cairo-xlib-surface.c9
4 files changed, 36 insertions, 1 deletions
diff --git a/src/cairo-pattern.c b/src/cairo-pattern.c
index 23c43855c..fcaaf46b8 100644
--- a/src/cairo-pattern.c
+++ b/src/cairo-pattern.c
@@ -63,6 +63,14 @@
* functions.
**/
+/**
+ * CAIRO_HAS_MIME_SURFACE:
+ *
+ * Unused symbol, always defined.
+ *
+ * Since: 1.12
+ **/
+
static freed_pool_t freed_pattern_pool[5];
static const cairo_solid_pattern_t _cairo_pattern_nil = {
diff --git a/src/cairo-quartz-image-surface.c b/src/cairo-quartz-image-surface.c
index d09f5b5bc..9056a7b68 100644
--- a/src/cairo-quartz-image-surface.c
+++ b/src/cairo-quartz-image-surface.c
@@ -49,6 +49,15 @@
#define SURFACE_ERROR_INVALID_SIZE (_cairo_surface_create_in_error(_cairo_error(CAIRO_STATUS_INVALID_SIZE)))
#define SURFACE_ERROR_INVALID_FORMAT (_cairo_surface_create_in_error(_cairo_error(CAIRO_STATUS_INVALID_FORMAT)))
+/**
+ * CAIRO_HAS_QUARTZ_IMAGE_SURFACE:
+ *
+ * Defined if the Quartz image surface backend is available.
+ * This macro can be used to conditionally compile backend-specific code.
+ *
+ * Since: 1.10
+ **/
+
static cairo_surface_t *
_cairo_quartz_image_surface_create_similar (void *asurface,
cairo_content_t content,
@@ -326,7 +335,7 @@ cairo_quartz_image_surface_create (cairo_surface_t *surface)
* or %NULL if the quartz surface is not an image surface.
*
* Since: 1.6
- */
+ **/
cairo_surface_t *
cairo_quartz_image_surface_get_image (cairo_surface_t *surface)
{
diff --git a/src/cairo-xcb-shm.c b/src/cairo-xcb-shm.c
index 763778ab2..5bc64a6cf 100644
--- a/src/cairo-xcb-shm.c
+++ b/src/cairo-xcb-shm.c
@@ -36,6 +36,15 @@
#include "cairoint.h"
+/**
+ * CAIRO_HAS_XCB_SHM_FUNCTIONS:
+ *
+ * Defined if Cairo has SHM functions for XCB.
+ * This macro can be used to conditionally compile backend-specific code.
+ *
+ * Since: 1.10
+ **/
+
#if CAIRO_HAS_XCB_SHM_FUNCTIONS
#include "cairo-xcb-private.h"
diff --git a/src/cairo-xlib-surface.c b/src/cairo-xlib-surface.c
index b37b21bad..84d536209 100644
--- a/src/cairo-xlib-surface.c
+++ b/src/cairo-xlib-surface.c
@@ -47,6 +47,15 @@
#include "cairoint.h"
+/**
+ * CAIRO_HAS_XLIB_XCB_FUNCTIONS:
+ *
+ * Defined if Cairo has support for XCB integration with Xlib.
+ * This macro can be used to conditionally compile backend-specific code.
+ *
+ * Since: 1.10
+ **/
+
#if !CAIRO_HAS_XLIB_XCB_FUNCTIONS
#include "cairo-xlib-private.h"