[libdazzle] build: install dzl-int-pair.h header



commit ad444e90f68b8654b5e15b35ba6471baa9f2e946
Author: Christian Hergert <chergert redhat com>
Date:   Thu Jun 8 15:44:10 2017 -0700

    build: install dzl-int-pair.h header
    
    But we need to avoid introspection with this since it is a C-only static
    inline header.

 src/meson.build         |    7 ++++++-
 src/util/dzl-int-pair.h |   24 ++++++++++++++++++++++++
 2 files changed, 30 insertions(+), 1 deletions(-)
---
diff --git a/src/meson.build b/src/meson.build
index 8ecf237..08198e3 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -26,6 +26,10 @@ libdazzle_generated_headers = [
   dzl_version_h,
 ]
 
+non_introspectable_public_headers = [
+  'util/dzl-int-pair.h',
+]
+
 libdazzle_public_headers = [
   'dazzle.h',
 
@@ -308,6 +312,7 @@ libdazzle_public_sources = [
 ]
 
 libdazzle_sources = [
+  non_introspectable_public_headers,
   libdazzle_generated_headers,
   libdazzle_public_headers,
   libdazzle_public_sources,
@@ -408,7 +413,7 @@ if get_option('with_introspection')
 endif
 
 # TODO: This is ugly and should be handled upstream
-foreach header: libdazzle_public_headers
+foreach header: libdazzle_public_headers + non_introspectable_public_headers
   header_split = header.split('/')
   if header_split.length() == 2
     header_path = join_paths(libdazzle_header_subdir, header_split[0])
diff --git a/src/util/dzl-int-pair.h b/src/util/dzl-int-pair.h
index 8ced907..ab307c7 100644
--- a/src/util/dzl-int-pair.h
+++ b/src/util/dzl-int-pair.h
@@ -66,6 +66,9 @@ typedef struct
 G_STATIC_ASSERT (sizeof (DzlIntPair) == 8);
 G_STATIC_ASSERT (sizeof (DzlUIntPair) == 8);
 
+/**
+ * dzl_int_pair_new: (skip)
+ */
 static inline DzlIntPair *
 dzl_int_pair_new (gint first, gint second)
 {
@@ -77,6 +80,9 @@ dzl_int_pair_new (gint first, gint second)
 #endif
 }
 
+/**
+ * dzl_uint_pair_new: (skip)
+ */
 static inline DzlUIntPair *
 dzl_uint_pair_new (guint first, guint second)
 {
@@ -88,6 +94,9 @@ dzl_uint_pair_new (guint first, guint second)
 #endif
 }
 
+/**
+ * dzl_int_pair_first: (skip)
+ */
 static inline gint
 dzl_int_pair_first (DzlIntPair *pair)
 {
@@ -100,6 +109,9 @@ dzl_int_pair_first (DzlIntPair *pair)
   return p.first;
 }
 
+/**
+ * dzl_int_pair_second: (skip)
+ */
 static inline gint
 dzl_int_pair_second (DzlIntPair *pair)
 {
@@ -112,6 +124,9 @@ dzl_int_pair_second (DzlIntPair *pair)
   return p.second;
 }
 
+/**
+ * dzl_uint_pair_first: (skip)
+ */
 static inline guint
 dzl_uint_pair_first (DzlUIntPair *pair)
 {
@@ -124,6 +139,9 @@ dzl_uint_pair_first (DzlUIntPair *pair)
   return p.first;
 }
 
+/**
+ * dzl_uint_pair_second: (skip)
+ */
 static inline guint
 dzl_uint_pair_second (DzlUIntPair *pair)
 {
@@ -136,6 +154,9 @@ dzl_uint_pair_second (DzlUIntPair *pair)
   return p.second;
 }
 
+/**
+ * dzl_int_pair_free: (skip)
+ */
 static inline void
 dzl_int_pair_free (DzlIntPair *pair)
 {
@@ -146,6 +167,9 @@ dzl_int_pair_free (DzlIntPair *pair)
 #endif
 }
 
+/**
+ * dzl_uint_pair_free: (skip)
+ */
 static inline void
 dzl_uint_pair_free (DzlUIntPair *pair)
 {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]