[gtk/wip/otte/dnd: 4/9] contentformats: Constify some functions



commit b2c3e39c89e4b2687422caf37284d0084bfd784f
Author: Benjamin Otte <otte redhat com>
Date:   Mon Mar 2 03:39:14 2020 +0100

    contentformats: Constify some functions

 gdk/gdkcontentformats.c | 8 ++++----
 gdk/gdkcontentformats.h | 4 ++--
 2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/gdk/gdkcontentformats.c b/gdk/gdkcontentformats.c
index 52437c02fd..e83b1b783e 100644
--- a/gdk/gdkcontentformats.c
+++ b/gdk/gdkcontentformats.c
@@ -465,8 +465,8 @@ gdk_content_formats_contain_mime_type (const GdkContentFormats *formats,
  *     types included in @formats or %NULL if none.
  **/
 const GType *
-gdk_content_formats_get_gtypes (GdkContentFormats *formats,
-                                gsize             *n_gtypes)
+gdk_content_formats_get_gtypes (const GdkContentFormats *formats,
+                                gsize                   *n_gtypes)
 {
   g_return_val_if_fail (formats != NULL, NULL);
 
@@ -491,8 +491,8 @@ gdk_content_formats_get_gtypes (GdkContentFormats *formats,
  *     if none.
  **/
 const char * const *
-gdk_content_formats_get_mime_types (GdkContentFormats *formats,
-                                    gsize             *n_mime_types)
+gdk_content_formats_get_mime_types (const GdkContentFormats *formats,
+                                    gsize                   *n_mime_types)
 {
   g_return_val_if_fail (formats != NULL, NULL);
 
diff --git a/gdk/gdkcontentformats.h b/gdk/gdkcontentformats.h
index 2fe983ea19..1798c48284 100644
--- a/gdk/gdkcontentformats.h
+++ b/gdk/gdkcontentformats.h
@@ -52,10 +52,10 @@ GDK_AVAILABLE_IN_ALL
 char *                  gdk_content_formats_to_string           (GdkContentFormats              *formats);
 
 GDK_AVAILABLE_IN_ALL
-const GType *           gdk_content_formats_get_gtypes          (GdkContentFormats              *formats,
+const GType *           gdk_content_formats_get_gtypes          (const GdkContentFormats        *formats,
                                                                  gsize                          *n_gtypes);
 GDK_AVAILABLE_IN_ALL
-const char * const *    gdk_content_formats_get_mime_types      (GdkContentFormats              *formats,
+const char * const *    gdk_content_formats_get_mime_types      (const GdkContentFormats        *formats,
                                                                  gsize                          
*n_mime_types);
 
 GDK_AVAILABLE_IN_ALL


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