/*
 * libvirt-sandbox-config-mount-ram.h: libvirt sandbox configuration
 *
 * Copyright (C) 2011-2012 Red Hat, Inc.
 *
 * This library 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; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library 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 library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 *
 * Author: Daniel P. Berrange <berrange@redhat.com>
 */

#if !defined(__LIBVIRT_SANDBOX_H__) && !defined(LIBVIRT_SANDBOX_BUILD)
#error "Only <libvirt-sandbox/libvirt-sandbox.h> can be included directly."
#endif

#ifndef __LIBVIRT_SANDBOX_CONFIG_MOUNT_RAM_H__
#define __LIBVIRT_SANDBOX_CONFIG_MOUNT_RAM_H__

G_BEGIN_DECLS

#define GVIR_SANDBOX_TYPE_CONFIG_MOUNT_RAM            (gvir_sandbox_config_mount_ram_get_type ())
#define GVIR_SANDBOX_CONFIG_MOUNT_RAM(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_SANDBOX_TYPE_CONFIG_MOUNT_RAM, GVirSandboxConfigMountRam))
#define GVIR_SANDBOX_CONFIG_MOUNT_RAM_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_SANDBOX_TYPE_CONFIG_MOUNT_RAM, GVirSandboxConfigMountRamClass))
#define GVIR_SANDBOX_IS_CONFIG_MOUNT_RAM(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_SANDBOX_TYPE_CONFIG_MOUNT_RAM))
#define GVIR_SANDBOX_IS_CONFIG_MOUNT_RAM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_SANDBOX_TYPE_CONFIG_MOUNT_RAM))
#define GVIR_SANDBOX_CONFIG_MOUNT_RAM_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_SANDBOX_TYPE_CONFIG_MOUNT_RAM, GVirSandboxConfigMountRamClass))

typedef struct _GVirSandboxConfigMountRam GVirSandboxConfigMountRam;
typedef struct _GVirSandboxConfigMountRamPrivate GVirSandboxConfigMountRamPrivate;
typedef struct _GVirSandboxConfigMountRamClass GVirSandboxConfigMountRamClass;

struct _GVirSandboxConfigMountRam
{
    GVirSandboxConfigMount parent;

    GVirSandboxConfigMountRamPrivate *priv;

    /* Do not add fields to this struct */
};

struct _GVirSandboxConfigMountRamClass
{
    GVirSandboxConfigMountClass parent_class;

    gpointer padding[LIBVIRT_SANDBOX_CLASS_PADDING];
};

GType gvir_sandbox_config_mount_ram_get_type(void);

GVirSandboxConfigMountRam *gvir_sandbox_config_mount_ram_new(const gchar *targetdir,
                                                             guint64 usage);

void gvir_sandbox_config_mount_ram_set_usage(GVirSandboxConfigMountRam *config, guint64 usage);
guint64 gvir_sandbox_config_mount_ram_get_usage(GVirSandboxConfigMountRam *config);

G_END_DECLS

#endif /* __LIBVIRT_SANDBOX_CONFIG_MOUNT_RAM_H__ */

/*
 * Local variables:
 *  c-indent-level: 4
 *  c-basic-offset: 4
 *  indent-tabs-mode: nil
 *  tab-width: 8
 * End:
 */
