1 /* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*-
3 obt/ddparse.h for the Openbox window manager
4 Copyright (c) 2009 Dana Jansens
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 See the COPYING file for a copy of the GNU General Public License.
21 typedef struct _ObtDDParseGroup ObtDDParseGroup
;
25 OBT_DDPARSE_LOCALESTRING
,
27 OBT_DDPARSE_LOCALESTRINGS
,
30 OBT_DDPARSE_ENUM_APPLICATION
,
31 OBT_DDPARSE_NUM_VALUE_TYPES
32 } ObtDDParseValueType
;
34 typedef struct _ObtDDParseValue
{
35 ObtDDParseValueType type
;
36 union _ObtDDParseValueValue
{
38 struct _ObtDDParseValueStrings
{
48 /* Returns a hash table where the keys are groups, and the values are
50 GHashTable
* obt_ddparse_file(const gchar
*name
, GSList
*paths
);
52 /* Returns a hash table where the keys are "keys" in the .desktop file,
53 and the values are "values" in the .desktop file, for the group @g. */
54 GHashTable
* obt_ddparse_group_keys(ObtDDParseGroup
*g
);