libgphoto2 photo camera library (libgphoto2) Internals  2.5.23
_GPPort Struct Reference

The GPhoto port structure. More...

#include <gphoto2-port.h>

Data Fields

GPPortType type
 Actual type of this port. More...
 
GPPortSettings settings
 Current port settings. More...
 
GPPortSettings settings_pending
 Settings to be committed. More...
 
int timeout
 Port timeout in milliseconds. More...
 
GPPortPrivateLibrarypl
 Camera driver private data pointer. More...
 
GPPortPrivateCorepc
 Port library private data pointer. More...
 

Detailed Description

The GPhoto port structure.

This structure tracks the physical connection of the device. It can correspond the various methods of lowlevel access, serial usb and others and abstracts them as much as possible.

Frontends should consider this structure opaque and only use accessor functions.

Camera drivers should only access the type and pl members directly, and use accessor functions for the rest.

Definition at line 143 of file gphoto2-port.h.

Field Documentation

◆ pc

◆ pl

GPPortPrivateLibrary* _GPPort::pl

Camera driver private data pointer.

Definition at line 152 of file gphoto2-port.h.

◆ settings

GPPortSettings _GPPort::settings

Current port settings.

Definition at line 147 of file gphoto2-port.h.

Referenced by gp_port_get_settings(), and gp_port_set_info().

◆ settings_pending

GPPortSettings _GPPort::settings_pending

Settings to be committed.

Definition at line 148 of file gphoto2-port.h.

Referenced by gp_port_set_settings().

◆ timeout

int _GPPort::timeout

Port timeout in milliseconds.

Definition at line 150 of file gphoto2-port.h.

Referenced by gp_port_check_int(), gp_port_get_timeout(), and gp_port_set_timeout().

◆ type

GPPortType _GPPort::type

Actual type of this port.

Definition at line 145 of file gphoto2-port.h.

Referenced by gp_abilities_list_detect_usb(), gp_camera_init(), gp_camera_set_port_speed(), gp_port_open(), and gp_port_set_info().


The documentation for this struct was generated from the following file: