[haiku-development] Re: How to Identify a file?

  • From: Michael Pfeiffer <michael.w.pfeiffer@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Thu, 18 Oct 2007 09:15:42 +0200

I'm looking for a "easy" way of identify what type of file a specific
entry_ref are. thought BFile could give me that but didn't find it.

I want to make the Media Player "see" different files. If I drop files on the Media Player I don't want png files etc to be added to the play list
and If I drop a saved play list on the Media Player I want different
things happen than with mp3 file.

I was thinking of suporting
- m3u list
- Zeta play list
- perhaps our own? don't know how that one would look like..

The mime type of a file should provide that information.

Regards,
Michael

Other related posts: