Re: mime api shortcomings
- From: Paolo Borelli <pborelli katamail com>
- To: Alexander Larsson <alexl redhat com>
- Cc: gnome-vfs-list gnome org
- Subject: Re: mime api shortcomings
- Date: Wed, 11 Jan 2006 14:23:07 +0100
Il giorno mer, 11/01/2006 alle 14.16 +0100, Alexander Larsson ha
scritto:
> >
> > Any thoughts/suggestions on how the api should look and on where to
> > implement this stuff? We are willing to take a look, but current mime
> > stuff is a bit of a mess to get oriented in given that it's split across
> > many files, that lots of functions are deprecated and that many mime
> > related functions are not in the public api...
>
> I have a distinct memory that we have discussed this on irc already some
> time ago. Anyway, I see the need for these functions, so it makes sense
> to add them.
>
Yes Paolo Maggi probably asked about them when he implemented loading,
my mail was mostly about knowing which function names you preferred and
where to put them :)
> We have gnome_vfs_get_mime_type_for_data in gnome-vfs-mime-utils.h,
> can't we just add:
> const char *gnome_vfs_get_mime_type_for_name (const char *filename);
> const char *gnome_vfs_get_mime_type_for_name_and_data (const char *filename,
> gconstpointer data,
> int data_size);
>
sounds good to me. Iago, feel free to get started :)
> The first is just gnome_vfs_mime_type_from_name() (availible to modules)
> with a better name. We should probably change all uses of that inside
> vfs to the new name.
ciao
paolo
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]