Blame gio/gfileattribute-priv.h

Packit ae235b
/* GIO - GLib Input, Output and Streaming Library
Packit ae235b
 * 
Packit ae235b
 * Copyright (C) 2006-2007 Red Hat, Inc.
Packit ae235b
 *
Packit ae235b
 * This library is free software; you can redistribute it and/or
Packit ae235b
 * modify it under the terms of the GNU Lesser General Public
Packit ae235b
 * License as published by the Free Software Foundation; either
Packit ae235b
 * version 2.1 of the License, or (at your option) any later version.
Packit ae235b
 *
Packit ae235b
 * This library is distributed in the hope that it will be useful,
Packit ae235b
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit ae235b
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit ae235b
 * Lesser General Public License for more details.
Packit ae235b
 *
Packit ae235b
 * You should have received a copy of the GNU Lesser General
Packit ae235b
 * Public License along with this library; if not, see <http://www.gnu.org/licenses/>.
Packit ae235b
 *
Packit ae235b
 * Author: Alexander Larsson <alexl@redhat.com>
Packit ae235b
 */
Packit ae235b
Packit ae235b
#ifndef __G_FILE_ATTRIBUTE_PRIV_H__
Packit ae235b
#define __G_FILE_ATTRIBUTE_PRIV_H__
Packit ae235b
Packit ae235b
#include "gfileattribute.h"
Packit ae235b
#include "gfileinfo.h"
Packit ae235b
Packit ae235b
#define G_FILE_ATTRIBUTE_VALUE_INIT {0}
Packit ae235b
Packit ae235b
typedef struct  {
Packit ae235b
  GFileAttributeType type : 8;
Packit ae235b
  GFileAttributeStatus status : 8;
Packit ae235b
  union {
Packit ae235b
    gboolean boolean;
Packit ae235b
    gint32 int32;
Packit ae235b
    guint32 uint32;
Packit ae235b
    gint64 int64;
Packit ae235b
    guint64 uint64;
Packit ae235b
    char *string;
Packit ae235b
    GObject *obj;
Packit ae235b
    char **stringv;
Packit ae235b
  } u;
Packit ae235b
} GFileAttributeValue;
Packit ae235b
Packit ae235b
GFileAttributeValue *_g_file_attribute_value_new             (void);
Packit ae235b
void                 _g_file_attribute_value_free            (GFileAttributeValue *attr);
Packit ae235b
void                 _g_file_attribute_value_clear           (GFileAttributeValue *attr);
Packit ae235b
void                 _g_file_attribute_value_set             (GFileAttributeValue *attr,
Packit ae235b
							      const GFileAttributeValue *new_value);
Packit ae235b
GFileAttributeValue *_g_file_attribute_value_dup             (const GFileAttributeValue *other);
Packit ae235b
gpointer             _g_file_attribute_value_peek_as_pointer (GFileAttributeValue *attr);
Packit ae235b
Packit ae235b
char *               _g_file_attribute_value_as_string       (const GFileAttributeValue *attr);
Packit ae235b
Packit ae235b
const char *         _g_file_attribute_value_get_string      (const GFileAttributeValue *attr);
Packit ae235b
const char *         _g_file_attribute_value_get_byte_string (const GFileAttributeValue *attr);
Packit ae235b
gboolean             _g_file_attribute_value_get_boolean     (const GFileAttributeValue *attr);
Packit ae235b
guint32              _g_file_attribute_value_get_uint32      (const GFileAttributeValue *attr);
Packit ae235b
gint32               _g_file_attribute_value_get_int32       (const GFileAttributeValue *attr);
Packit ae235b
guint64              _g_file_attribute_value_get_uint64      (const GFileAttributeValue *attr);
Packit ae235b
gint64               _g_file_attribute_value_get_int64       (const GFileAttributeValue *attr);
Packit ae235b
GObject *            _g_file_attribute_value_get_object      (const GFileAttributeValue *attr);
Packit ae235b
char **              _g_file_attribute_value_get_stringv     (const GFileAttributeValue *attr);
Packit ae235b
Packit ae235b
void                 _g_file_attribute_value_set_from_pointer(GFileAttributeValue *attr,
Packit ae235b
							      GFileAttributeType   type,
Packit ae235b
							      gpointer             value_p,
Packit ae235b
							      gboolean             dup);
Packit ae235b
void                 _g_file_attribute_value_set_string      (GFileAttributeValue *attr,
Packit ae235b
							      const char          *string);
Packit ae235b
void                 _g_file_attribute_value_set_byte_string (GFileAttributeValue *attr,
Packit ae235b
							      const char          *string);
Packit ae235b
void                 _g_file_attribute_value_set_boolean     (GFileAttributeValue *attr,
Packit ae235b
							      gboolean             value);
Packit ae235b
void                 _g_file_attribute_value_set_uint32      (GFileAttributeValue *attr,
Packit ae235b
							      guint32              value);
Packit ae235b
void                 _g_file_attribute_value_set_int32       (GFileAttributeValue *attr,
Packit ae235b
							      gint32               value);
Packit ae235b
void                 _g_file_attribute_value_set_uint64      (GFileAttributeValue *attr,
Packit ae235b
							      guint64              value);
Packit ae235b
void                 _g_file_attribute_value_set_int64       (GFileAttributeValue *attr,
Packit ae235b
							      gint64               value);
Packit ae235b
void                 _g_file_attribute_value_set_object      (GFileAttributeValue *attr,
Packit ae235b
							      GObject             *obj);
Packit ae235b
void                 _g_file_attribute_value_set_stringv     (GFileAttributeValue *attr,
Packit ae235b
							      char               **value);
Packit ae235b
Packit ae235b
Packit ae235b
GFileAttributeValue *_g_file_info_get_attribute_value (GFileInfo  *info,
Packit ae235b
						       const char *attribute);
Packit ae235b
Packit ae235b
#endif /* __G_FILE_ATTRIBUTE_PRIV_H__ */