ArvFakeDevice

ArvFakeDevice — Fake device

Functions

Properties

char * serial-number Write / Construct Only

Types and Values

Object Hierarchy

    GObject
    ╰── ArvDevice
        ╰── ArvFakeDevice

Implemented Interfaces

ArvFakeDevice implements GInitable.

Description

Functions

arv_fake_device_new ()

ArvDevice *
arv_fake_device_new (const char *serial_number,
                     GError **error);

Parameters

serial_number

fake device serial number

 

error

a GError placeholder, NULL to ignore

 

Returns

a newly created ArvDevice simulating a real device

Since: 0.8.0


arv_fake_device_get_fake_camera ()

ArvFakeCamera *
arv_fake_device_get_fake_camera (ArvFakeDevice *device);

Parameters

device

a fake device

 

Returns

the ArvFakeCamera used by this device instance.

[transfer none]

Since: 0.8.0

Types and Values

ArvFakeDevice

typedef struct _ArvFakeDevice ArvFakeDevice;

Property Details

The “serial-number” property

  “serial-number”            char *

Fake device serial number.

Owner: ArvFakeDevice

Flags: Write / Construct Only

Default value: NULL