00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef BUS_DESKTOP_FILE_H
00024 #define BUS_DESKTOP_FILE_H
00025
00026 #include <dbus/dbus.h>
00027 #include <dbus/dbus-string.h>
00028
00029 #define BUS_DESKTOP_PARSE_ERROR_INVALID_SYNTAX "org.freedesktop.DBus.DesktopParseError.InvalidSyntax"
00030 #define BUS_DESKTOP_PARSE_ERROR_INVALID_ESCAPES "org.freedesktop.DBus.DesktopParseError.InvalidEscapes"
00031 #define BUS_DESKTOP_PARSE_ERROR_INVALID_CHARS "org.freedesktop.DBus.DesktopParseError.InvalidChars"
00032
00033 typedef struct BusDesktopFile BusDesktopFile;
00034
00035 BusDesktopFile *bus_desktop_file_load (DBusString *filename,
00036 DBusError *error);
00037 void bus_desktop_file_free (BusDesktopFile *file);
00038
00039 dbus_bool_t bus_desktop_file_get_raw (BusDesktopFile *desktop_file,
00040 const char *section_name,
00041 const char *keyname,
00042 const char **val);
00043 dbus_bool_t bus_desktop_file_get_string (BusDesktopFile *desktop_file,
00044 const char *section,
00045 const char *keyname,
00046 char **val);
00047
00048
00049 #endif