Main Page   Modules   Data Structures   File List   Data Fields   Related Pages  

desktop-file.h

00001 /* -*- mode: C; c-file-style: "gnu" -*- */
00002 /* desktop-file.h  .desktop file parser
00003  *
00004  * Copyright (C) 2003  CodeFactory AB
00005  *
00006  * Licensed under the Academic Free License version 1.2
00007  * 
00008  * This program is free software; you can redistribute it and/or modify
00009  * it under the terms of the GNU General Public License as published by
00010  * the Free Software Foundation; either version 2 of the License, or
00011  * (at your option) any later version.
00012  *
00013  * This program is distributed in the hope that it will be useful,
00014  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016  * GNU General Public License for more details.
00017  * 
00018  * You should have received a copy of the GNU General Public License
00019  * along with this program; if not, write to the Free Software
00020  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
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 /* BUS_DESKTOP_FILE_H */

Generated on Mon Sep 29 21:31:02 2003 for D-BUS by doxygen1.2.15