24 #ifndef __GPHOTO2_PORT_INFO_LIST_H__
25 #define __GPHOTO2_PORT_INFO_LIST_H__
68 #ifdef _GPHOTO2_INTERNAL_CODE
70 extern const StringFlagItem gpi_gphoto_port_type_map[];
int gp_port_info_list_lookup_path(GPPortInfoList *list, const char *path)
Lookup a specific path in the list.
Definition: gphoto2-port-info-list.c:339
int gp_port_info_list_get_info(GPPortInfoList *list, int n, GPPortInfo *info)
Get port information of specific entry.
Definition: gphoto2-port-info-list.c:465
USB Mass Storage raw SCSI port.
Definition: gphoto2-port-info-list.h:41
Serial port.
Definition: gphoto2-port-info-list.h:36
int gp_port_info_list_load(GPPortInfoList *list)
Load system ports.
Definition: gphoto2-port-info-list.c:277
int gp_port_info_list_lookup_name(GPPortInfoList *list, const char *name)
Look up a name in the list.
Definition: gphoto2-port-info-list.c:435
int gp_port_info_list_new(GPPortInfoList **list)
Create a new GPPortInfoList.
Definition: gphoto2-port-info-list.c:114
PTP/IP port.
Definition: gphoto2-port-info-list.h:39
struct _GPPortInfo GPPortInfo
Information about the current port.
Direct IO to an usb mass storage device.
Definition: gphoto2-port-info-list.h:40
char path[64]
The path of this port (whatever is after the :)
Definition: gphoto2-port-info-list.h:56
USB port.
Definition: gphoto2-port-info-list.h:37
char library_filename[1024]
Internal pathname of the port driver. Do not use outside of the port library.
Definition: gphoto2-port-info-list.h:59
Disk / local mountpoint port.
Definition: gphoto2-port-info-list.h:38
No specific type associated.
Definition: gphoto2-port-info-list.h:35
Definition: gphoto2-port-info-list.c:69
char name[64]
The name of this port (usb:)
Definition: gphoto2-port-info-list.h:55
const char * gp_port_message_codeset(const char *)
Specify codeset for translations.
Definition: gphoto2-port-info-list.c:99
int gp_port_info_list_free(GPPortInfoList *list)
Free a GPPortInfo list.
Definition: gphoto2-port-info-list.c:141
GPPortType type
The type of this port.
Definition: gphoto2-port-info-list.h:54
Information about the current port.
Definition: gphoto2-port-info-list.h:53
int gp_port_info_list_count(GPPortInfoList *list)
Number of ports in the list.
Definition: gphoto2-port-info-list.c:306
int gp_port_info_list_append(GPPortInfoList *list, GPPortInfo info)
Append a portinfo to the port information list.
Definition: gphoto2-port-info-list.c:173
GPPortType
The gphoto port type.
Definition: gphoto2-port-info-list.h:34