[glib] gconvert: Skip the GIConv API from introspection
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] gconvert: Skip the GIConv API from introspection
- Date: Mon, 11 Sep 2017 19:47:25 +0000 (UTC)
commit 7759542ee3888badb6eaf1a492b81b5ebc81e5f2
Author: Mikhail Zabaluev <mikhail zabaluev gmail com>
Date: Tue Oct 6 15:33:03 2015 +0300
gconvert: Skip the GIConv API from introspection
It's ugly:
- The core method, g_iconv(), can't be annotated with good semantics.
- The error value of g_iconv_open() is not representable in today's
introspection.
https://bugzilla.gnome.org/show_bug.cgi?id=756128
glib/gconvert.c | 8 ++++----
glib/gconvert.h | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/glib/gconvert.c b/glib/gconvert.c
index 64fd981..ef96313 100644
--- a/glib/gconvert.c
+++ b/glib/gconvert.c
@@ -202,7 +202,7 @@ try_to_aliases (const char **to_aliases,
}
/**
- * g_iconv_open:
+ * g_iconv_open: (skip)
* @to_codeset: destination codeset
* @from_codeset: source codeset
*
@@ -251,7 +251,7 @@ g_iconv_open (const gchar *to_codeset,
}
/**
- * g_iconv:
+ * g_iconv: (skip)
* @converter: conversion descriptor from g_iconv_open()
* @inbuf: bytes to convert
* @inbytes_left: inout parameter, bytes remaining to convert in @inbuf
@@ -280,7 +280,7 @@ g_iconv (GIConv converter,
}
/**
- * g_iconv_close:
+ * g_iconv_close: (skip)
* @converter: a conversion descriptor from g_iconv_open()
*
* Same as the standard UNIX routine iconv_close(), but
@@ -340,7 +340,7 @@ close_converter (GIConv cd)
}
/**
- * g_convert_with_iconv:
+ * g_convert_with_iconv: (skip)
* @str: the string to convert
* @len: the length of the string in bytes, or -1 if the string is
* nul-terminated (Note that some encodings may allow nul
diff --git a/glib/gconvert.h b/glib/gconvert.h
index ab6ab4f..f064e41 100644
--- a/glib/gconvert.h
+++ b/glib/gconvert.h
@@ -69,7 +69,7 @@ GLIB_AVAILABLE_IN_ALL
GQuark g_convert_error_quark (void);
/**
- * GIConv:
+ * GIConv: (skip)
*
* The GIConv struct wraps an iconv() conversion descriptor. It contains
* private data and should only be accessed using the following functions.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]