libgphoto2 photo camera library (libgphoto2) Internals
2.5.23
|
Go to the documentation of this file.
24 #ifndef __GPHOTO2_PORT_INFO_LIST_H__
25 #define __GPHOTO2_PORT_INFO_LIST_H__
62 #ifdef _GPHOTO2_INTERNAL_CODE
64 extern const StringFlagItem gpi_gphoto_port_type_map[];
103 #ifdef _GPHOTO2_INTERNAL_CODE
104 #define IOLIBDIR_ENV "IOLIBS"
char * name
The name of this port (usb:)
int gp_port_info_new(GPPortInfo *info)
Create a new portinfo.
struct _GPPortInfo * GPPortInfo
int gp_port_info_get_path(GPPortInfo info, char **path)
Get path of a specific port entry.
int gp_port_info_set_library_filename(GPPortInfo info, char *lib)
GPPortType type
The type of this port.
int gp_port_info_list_lookup_path(GPPortInfoList *list, const char *path)
Lookup a specific path in the list.
int gp_port_info_set_path(GPPortInfo info, const char *path)
Set path of a specific port entry.
int gp_port_info_list_load(GPPortInfoList *list)
Load system ports.
int gp_port_info_list_get_info(GPPortInfoList *list, int n, GPPortInfo *info)
Get port information of specific entry.
int gp_port_info_set_type(GPPortInfo info, const GPPortType type)
Set type of a specific port entry.
char * path
The path of this port (usb:001,023)
@ GP_PORT_USB_SCSI
USB Mass Storage raw SCSI port.
int gp_port_info_list_free(GPPortInfoList *list)
Free a GPPortInfo list.
int gp_port_info_get_library_filename(GPPortInfo info, char **lib)
int gp_port_info_get_name(GPPortInfo info, char **name)
Get name of a specific port entry.
@ GP_PORT_USB_DISK_DIRECT
Direct IO to an usb mass storage device.
int gp_port_info_list_new(GPPortInfoList **list)
Create a new GPPortInfoList.
const char * gp_port_message_codeset(const char *)
Specify codeset for translations.
int gp_port_info_get_type(GPPortInfo info, GPPortType *type)
Get type of a specific port entry.
@ GP_PORT_NONE
No specific type associated.
int gp_port_info_list_count(GPPortInfoList *list)
Number of ports in the list.
@ GP_PORT_SERIAL
Serial port.
int gp_port_info_set_name(GPPortInfo info, const char *name)
Set name of a specific port entry.
@ GP_PORT_DISK
Disk / local mountpoint port.
int gp_port_info_list_lookup_name(GPPortInfoList *list, const char *name)
Look up a name in the list.
int gp_port_info_list_append(GPPortInfoList *list, GPPortInfo info)
Append a portinfo to the port information list.
@ GP_PORT_PTPIP
PTP/IP port.
GPPortType
The gphoto port type.