gramps/src/grampslib.i

31 lines
759 B
OpenEdge ABL
Raw Normal View History

%module grampslib
2002-10-28 13:36:39 +00:00
%{
#include <libgnomevfs/gnome-vfs-application-registry.h>
%}
2002-10-28 13:36:39 +00:00
extern const char* gnome_vfs_mime_get_icon(const char *);
extern const char* gnome_vfs_mime_type_from_name(const char* );
extern const char* gnome_vfs_mime_get_description(const char*);
extern const char* gnome_vfs_mime_get_value(const char*,const char*);
%inline %{
const char* default_application_name(const char* type) {
GnomeVFSMimeApplication *a = gnome_vfs_mime_get_default_application(type);
2004-01-10 18:05:36 +00:00
if (a) {
return a->name;
} else {
return (char*) NULL;
}
2002-10-28 13:36:39 +00:00
}
const char* default_application_command(const char* type) {
GnomeVFSMimeApplication *a = gnome_vfs_mime_get_default_application(type);
2004-01-10 18:05:36 +00:00
if (a) {
return a->command;
} else {
return (char*) NULL;
}
2002-10-28 13:36:39 +00:00
}
%}