GuestfsAddDrive: Libguestfs GObject Bindings Reference Manual

## GuestfsAddDrive GuestfsAddDrive — An object encapsulating optional arguments for guestfs_session_add_drive |

## Functions

GuestfsAddDrive * | guestfs_add_drive_new ()

## Properties

gchar * | cachemode | Read / Write / Construct
GuestfsTristate | copyonread | Read / Write / Construct
gchar * | discard | Read / Write / Construct
gchar * | format | Read / Write / Construct
gchar * | iface | Read / Write / Construct
gchar * | label | Read / Write / Construct
gchar * | name | Read / Write / Construct
gchar * | protocol | Read / Write / Construct
GuestfsTristate | readonly | Read / Write / Construct
gchar * | secret | Read / Write / Construct
gchar * | username | Read / Write / Construct

## Types and Values

struct | GuestfsAddDrive
struct | GuestfsAddDriveClass

## Object Hierarchy

        GObject
        ╰── GuestfsAddDrive

## Includes

    #include <guestfs-gobject.h>

## Description

An object encapsulating optional arguments for guestfs_session_add_drive

## Functions

### guestfs_add_drive_new ()

    GuestfsAddDrive *
    guestfs_add_drive_new (void);

Create a new GuestfsAddDrive object

#### Returns

a new GuestfsAddDrive object.

[transfer full]

## Types and Values

### struct GuestfsAddDrive

    struct GuestfsAddDrive;

An object encapsulating optional arguments for guestfs_session_add_drive.

### struct GuestfsAddDriveClass

    struct GuestfsAddDriveClass {
      GObjectClass parent_class;
    };

A class metadata object for GuestfsAddDrive.

#### Members

## Property Details

### The `“cachemode”` property

      “cachemode”                gchar *

A string.

Flags: Read / Write / Construct

Default value: NULL

### The `“copyonread”` property

      “copyonread”               GuestfsTristate

A boolean.

Flags: Read / Write / Construct

Default value: GUESTFS_TRISTATE_NONE

### The `“discard”` property

      “discard”                  gchar *

A string.

Flags: Read / Write / Construct

Default value: NULL

### The `“format”` property

      “format”                   gchar *

A string.

Flags: Read / Write / Construct

Default value: NULL

### The `“iface”` property

      “iface”                    gchar *

A string.

Flags: Read / Write / Construct

Default value: NULL

### The `“label”` property

      “label”                    gchar *

A string.

Flags: Read / Write / Construct

Default value: NULL

### The `“name”` property

      “name”                     gchar *

A string.

Flags: Read / Write / Construct

Default value: NULL

### The `“protocol”` property

      “protocol”                 gchar *

A string.

Flags: Read / Write / Construct

Default value: NULL

### The `“readonly”` property

      “readonly”                 GuestfsTristate

A boolean.

Flags: Read / Write / Construct

Default value: GUESTFS_TRISTATE_NONE

### The `“secret”` property

      “secret”                   gchar *

A string.

Flags: Read / Write / Construct

Default value: NULL

### The `“username”` property

      “username”                 gchar *

A string.

Flags: Read / Write / Construct

Default value: NULL