LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices



Reply
 
Search this Thread
Old 10-10-2008, 08:25 AM   #1
linuxsavar
Member
 
Registered: May 2007
Distribution: slackware
Posts: 34

Rep: Reputation: 15
xdg-mime


i am going to use xdg-mime library in my application
i include xdgmime.h
i used
Code:
const char *result=xdg_mime_get_mime_type_from_file_name(".png")
to get mimetype for png
but when i used
Code:
char **par=xdg_mime_get_mime_parents(result);
it only returned NULL
can anybody help me for using this library?
thanks

Last edited by linuxsavar; 10-10-2008 at 08:27 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
XDG menus, LXDE, and menu entries kdulcimer Grafpup 3 11-10-2007 02:14 AM
mime types Nightfrost Linux - General 2 10-01-2004 06:11 AM
xdg problems zbrox Debian 2 07-11-2004 11:53 AM
Ximian and MIME? mikeshn Linux - Software 0 03-26-2004 09:22 AM
MIME Types? JoeLinux Linux - Software 6 09-14-2002 05:54 AM


All times are GMT -5. The time now is 09:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration