2003-02-12 00:48:29 +00:00
|
|
|
/* -*- mode: C; c-file-style: "gnu" -*- */
|
|
|
|
|
/* desktop-file.h .desktop file parser
|
|
|
|
|
*
|
|
|
|
|
* Copyright (C) 2003 CodeFactory AB
|
|
|
|
|
*
|
|
|
|
|
* Licensed under the Academic Free License version 1.2
|
|
|
|
|
*
|
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
|
* (at your option) any later version.
|
|
|
|
|
*
|
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
#ifndef BUS_DESKTOP_FILE_H
|
|
|
|
|
#define BUS_DESKTOP_FILE_H
|
|
|
|
|
|
|
|
|
|
#include <dbus/dbus.h>
|
2003-02-13 15:26:08 +00:00
|
|
|
#include <dbus/dbus-string.h>
|
2003-02-12 00:48:29 +00:00
|
|
|
|
|
|
|
|
typedef struct BusDesktopFile BusDesktopFile;
|
|
|
|
|
|
2003-02-13 15:26:08 +00:00
|
|
|
BusDesktopFile *bus_desktop_file_load (DBusString *filename,
|
2003-02-12 00:48:29 +00:00
|
|
|
DBusResultCode *result);
|
|
|
|
|
void bus_desktop_file_free (BusDesktopFile *file);
|
|
|
|
|
|
2003-02-13 15:26:08 +00:00
|
|
|
dbus_bool_t bus_desktop_file_get_raw (BusDesktopFile *desktop_file,
|
|
|
|
|
const char *section_name,
|
|
|
|
|
const char *keyname,
|
|
|
|
|
const char **val);
|
|
|
|
|
dbus_bool_t bus_desktop_file_get_string (BusDesktopFile *desktop_file,
|
|
|
|
|
const char *section,
|
|
|
|
|
const char *keyname,
|
|
|
|
|
char **val);
|
|
|
|
|
|
2003-02-12 00:48:29 +00:00
|
|
|
|
|
|
|
|
#endif /* BUS_DESKTOP_FILE_H */
|