diff options
author | Matthias Clasen <maclas@gmx.de> | 2004-07-08 03:56:36 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2004-07-08 03:56:36 +0000 |
commit | 67e592db612ca11b5455177fba584092c6f266ee (patch) | |
tree | 6a8100b80e246bf7bfcc23c65ddd21901eaa8cec /gdk-pixbuf/gdk-pixbuf-io.h | |
parent | 2f9abbf35b80f7e6effe82bba10da3db569d05ad (diff) | |
download | gdk-pixbuf-67e592db612ca11b5455177fba584092c6f266ee.tar.gz |
New functions to disable/enable individual loaders and to obtain license
Wed Jul 7 23:53:58 2004 Matthias Clasen <maclas@gmx.de>
* gdk-pixbuf-io.h:
* gdk-pixbuf-io.c (gdk_pixbuf_format_is_disabled):
* gdk-pixbuf-io.c (gdk_pixbuf_format_set_disabled):
* gdk-pixbuf-io.c (gdk_pixbuf_format_get_license):
New functions to disable/enable individual loaders and to
obtain license information about loaders.
* gdk-pixbuf-io.h (GdkPixbufFormat): Add disabled and
license fields.
* gdk-pixbuf-io.c (_gdk_pixbuf_get_module):
* gdk-pixbuf-io.c (_gdk_pixbuf_get_named_module): Skip
disabled loaders.
* io-*.c: Add license information in the fill_info
functions.
Diffstat (limited to 'gdk-pixbuf/gdk-pixbuf-io.h')
-rw-r--r-- | gdk-pixbuf/gdk-pixbuf-io.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/gdk-pixbuf/gdk-pixbuf-io.h b/gdk-pixbuf/gdk-pixbuf-io.h index 27a17b3a4..3eafd5f82 100644 --- a/gdk-pixbuf/gdk-pixbuf-io.h +++ b/gdk-pixbuf/gdk-pixbuf-io.h @@ -39,17 +39,21 @@ G_BEGIN_DECLS typedef struct _GdkPixbufFormat GdkPixbufFormat; -GSList *gdk_pixbuf_get_formats (void); +GSList *gdk_pixbuf_get_formats (void); gchar *gdk_pixbuf_format_get_name (GdkPixbufFormat *format); gchar *gdk_pixbuf_format_get_description (GdkPixbufFormat *format); gchar **gdk_pixbuf_format_get_mime_types (GdkPixbufFormat *format); gchar **gdk_pixbuf_format_get_extensions (GdkPixbufFormat *format); gboolean gdk_pixbuf_format_is_writable (GdkPixbufFormat *format); gboolean gdk_pixbuf_format_is_scalable (GdkPixbufFormat *format); +gboolean gdk_pixbuf_format_is_disabled (GdkPixbufFormat *format); +void gdk_pixbuf_format_set_disabled (GdkPixbufFormat *format, + gboolean disabled); +gchar *gdk_pixbuf_format_get_license (GdkPixbufFormat *format); -GdkPixbufFormat *gdk_pixbuf_get_file_info (const gchar *filename, - gint *width, - gint *height); +GdkPixbufFormat *gdk_pixbuf_get_file_info (const gchar *filename, + gint *width, + gint *height); #ifdef GDK_PIXBUF_ENABLE_BACKEND @@ -151,6 +155,8 @@ struct _GdkPixbufFormat { gchar **mime_types; gchar **extensions; guint32 flags; + gboolean disabled; + gchar *license; }; |