gcharset: Add header file for private API
authorColin Walters <walters@verbum.org>
Thu, 1 Nov 2012 23:38:44 +0000 (19:38 -0400)
committerColin Walters <walters@verbum.org>
Fri, 2 Nov 2012 13:03:52 +0000 (09:03 -0400)
This fixes the build with -Werror=missing-prototypes.

https://bugzilla.gnome.org/show_bug.cgi?id=687385

glib/Makefile.am
glib/gcharset.c
glib/gcharsetprivate.h [new file with mode: 0644]
glib/gconvert.c

index 276a60b..3168b1a 100644 (file)
@@ -131,6 +131,7 @@ libglib_2_0_la_SOURCES =    \
        gbytes.c                \
        gbytes.h                \
        gcharset.c              \
+       gcharsetprivate.h       \
        gchecksum.c             \
        gconvert.c              \
        gdataset.c              \
index 4f52ab4..cb08027 100644 (file)
@@ -20,7 +20,7 @@
 
 #include "config.h"
 
-#include "gcharset.h"
+#include "gcharsetprivate.h"
 
 #include "garray.h"
 #include "genviron.h"
diff --git a/glib/gcharsetprivate.h b/glib/gcharsetprivate.h
new file mode 100644 (file)
index 0000000..17a867f
--- /dev/null
@@ -0,0 +1,33 @@
+/* gunicodeprivate.h
+ *
+ * Copyright (C) 2012 Red Hat, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.         See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __G_CHARSET_PRIVATE_H__
+#define __G_CHARSET_PRIVATE_H__
+
+#include "gcharset.h"
+
+G_BEGIN_DECLS
+
+G_GNUC_INTERNAL const char ** _g_charset_get_aliases (const char *canonical_name);
+;
+
+G_END_DECLS
+
+#endif
index ae25a32..368bef5 100644 (file)
@@ -43,7 +43,7 @@
 
 #include "gconvert.h"
 
-#include "gcharset.h"
+#include "gcharsetprivate.h"
 #include "gslist.h"
 #include "gstrfuncs.h"
 #include "gtestutils.h"