LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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, 07: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 07:27 AM.
 
  


Reply



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 01:14 AM
mime types Nightfrost Linux - General 2 10-01-2004 05:11 AM
xdg problems zbrox Debian 2 07-11-2004 10:53 AM
Ximian and MIME? mikeshn Linux - Software 0 03-26-2004 08:22 AM
MIME Types? JoeLinux Linux - Software 6 09-14-2002 04:54 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:20 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
Open Source Consulting | Domain Registration