1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
/*
* Copyright (C) 2004 Nokia Corporation.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; version 2 of the
* License.
*
* 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
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this program; if not, write to the
* Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
#ifndef __OVU_CAP_PARSER_H__
#define __OVU_CAP_PARSER_H__
#include <glib.h>
typedef struct _OvuCaps OvuCaps;
typedef struct _OvuCapsMemory OvuCapsMemory;
OvuCaps * ovu_caps_parser_parse (const gchar *buf,
gint len,
GError **error);
GList * ovu_caps_get_memory_entries (OvuCaps *caps);
OvuCapsMemory *ovu_caps_get_memory_type (OvuCaps *caps,
const gchar *mem_type);
void ovu_caps_free (OvuCaps *caps);
OvuCapsMemory * ovu_caps_memory_new (const gchar *type,
goffset free,
goffset used,
gboolean has_free,
gboolean has_used,
gboolean case_sensitive);
void ovu_caps_memory_free (OvuCapsMemory *memory);
gboolean ovu_caps_memory_equal (OvuCapsMemory *m1,
OvuCapsMemory *m2);
const gchar * ovu_caps_memory_get_type (OvuCapsMemory *memory);
goffset ovu_caps_memory_get_used (OvuCapsMemory *memory);
goffset ovu_caps_memory_get_free (OvuCapsMemory *memory);
gboolean ovu_caps_memory_has_used (OvuCapsMemory *memory);
gboolean ovu_caps_memory_has_free (OvuCapsMemory *memory);
gboolean ovu_caps_memory_get_case_sensitive (OvuCapsMemory *memory);
#endif /* __OVU_CAP_PARSER_H__ */
|