1 /* GIO - GLib Input, Output and Streaming Library
3 * Copyright (C) 2006-2007 Red Hat, Inc.
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General
16 * Public License along with this library; if not, see <http://www.gnu.org/licenses/>.
18 * Author: Alexander Larsson <alexl@redhat.com>
21 #ifndef __G_FILE_ATTRIBUTE_PRIV_H__
22 #define __G_FILE_ATTRIBUTE_PRIV_H__
24 #include "gfileattribute.h"
25 #include "gfileinfo.h"
27 #define G_FILE_ATTRIBUTE_VALUE_INIT {0}
30 GFileAttributeType type
: 8;
31 GFileAttributeStatus status
: 8;
42 } GFileAttributeValue
;
44 GFileAttributeValue
*_g_file_attribute_value_new (void);
45 void _g_file_attribute_value_free (GFileAttributeValue
*attr
);
46 void _g_file_attribute_value_clear (GFileAttributeValue
*attr
);
47 void _g_file_attribute_value_set (GFileAttributeValue
*attr
,
48 const GFileAttributeValue
*new_value
);
49 GFileAttributeValue
*_g_file_attribute_value_dup (const GFileAttributeValue
*other
);
50 gpointer
_g_file_attribute_value_peek_as_pointer (GFileAttributeValue
*attr
);
52 char * _g_file_attribute_value_as_string (const GFileAttributeValue
*attr
);
54 const char * _g_file_attribute_value_get_string (const GFileAttributeValue
*attr
);
55 const char * _g_file_attribute_value_get_byte_string (const GFileAttributeValue
*attr
);
56 gboolean
_g_file_attribute_value_get_boolean (const GFileAttributeValue
*attr
);
57 guint32
_g_file_attribute_value_get_uint32 (const GFileAttributeValue
*attr
);
58 gint32
_g_file_attribute_value_get_int32 (const GFileAttributeValue
*attr
);
59 guint64
_g_file_attribute_value_get_uint64 (const GFileAttributeValue
*attr
);
60 gint64
_g_file_attribute_value_get_int64 (const GFileAttributeValue
*attr
);
61 GObject
* _g_file_attribute_value_get_object (const GFileAttributeValue
*attr
);
62 char ** _g_file_attribute_value_get_stringv (const GFileAttributeValue
*attr
);
64 void _g_file_attribute_value_set_from_pointer(GFileAttributeValue
*attr
,
65 GFileAttributeType type
,
68 void _g_file_attribute_value_set_string (GFileAttributeValue
*attr
,
70 void _g_file_attribute_value_set_byte_string (GFileAttributeValue
*attr
,
72 void _g_file_attribute_value_set_boolean (GFileAttributeValue
*attr
,
74 void _g_file_attribute_value_set_uint32 (GFileAttributeValue
*attr
,
76 void _g_file_attribute_value_set_int32 (GFileAttributeValue
*attr
,
78 void _g_file_attribute_value_set_uint64 (GFileAttributeValue
*attr
,
80 void _g_file_attribute_value_set_int64 (GFileAttributeValue
*attr
,
82 void _g_file_attribute_value_set_object (GFileAttributeValue
*attr
,
84 void _g_file_attribute_value_set_stringv (GFileAttributeValue
*attr
,
88 GFileAttributeValue
*_g_file_info_get_attribute_value (GFileInfo
*info
,
89 const char *attribute
);
91 #endif /* __G_FILE_ATTRIBUTE_PRIV_H__ */