libgphoto2 photo camera library (libgphoto2) API
2.5.23
|
Go to the documentation of this file.
24 #ifndef GPHOTO_PORT_INFO_H
25 #define GPHOTO_PORT_INFO_H
char * name
The name of this port (usb:)
Definition: gphoto2-port-info.h:34
Definition: gphoto2-port-info.h:32
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:431
int gp_port_info_set_type(GPPortInfo info, GPPortType type)
Set type of a specific port entry.
Definition: gphoto2-port-info-list.c:570
Definition: gphoto2-port-info-list.c:74
GPPortType type
The type of this port.
Definition: gphoto2-port-info.h:33
#define GP_ERROR_UNKNOWN_PORT
Unknown libgphoto2 port passed.
Definition: gphoto2-port-result.h:50
int gp_port_info_list_append(GPPortInfoList *list, GPPortInfo info)
Append a portinfo to the port information list.
Definition: gphoto2-port-info-list.c:177
int gp_port_info_list_new(GPPortInfoList **list)
Create a new GPPortInfoList.
Definition: gphoto2-port-info-list.c:111
int gp_port_info_get_type(GPPortInfo info, GPPortType *type)
Get type of a specific port entry.
Definition: gphoto2-port-info-list.c:554
int gp_port_info_list_free(GPPortInfoList *list)
Free a GPPortInfo list.
Definition: gphoto2-port-info-list.c:135
int gp_port_info_get_path(GPPortInfo info, char **path)
Get path of a specific port entry.
Definition: gphoto2-port-info-list.c:523
char * path
The path of this port (usb:001,023)
Definition: gphoto2-port-info.h:35
int gp_port_info_list_count(GPPortInfoList *list)
Number of ports in the list.
Definition: gphoto2-port-info-list.c:305
#define GP_OK
Everything is OK.
Definition: gphoto2-port-result.h:30
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:336
const char * gp_port_message_codeset(const char *codeset)
Specify codeset for translations.
Definition: gphoto2-port-info-list.c:96
int gp_port_info_set_name(GPPortInfo info, const char *name)
Set name of a specific port entry.
Definition: gphoto2-port-info-list.c:508
int gp_port_info_new(GPPortInfo *info)
Create a new portinfo.
Definition: gphoto2-port-info-list.c:585
int gp_port_info_list_load(GPPortInfoList *list)
Load system ports.
Definition: gphoto2-port-info-list.c:274
int gp_port_info_set_path(GPPortInfo info, const char *path)
Set path of a specific port entry.
Definition: gphoto2-port-info-list.c:539
int gp_port_info_get_name(GPPortInfo info, char **name)
Get name of a specific port entry.
Definition: gphoto2-port-info-list.c:492
char * library_filename
Internal pathname of the port driver. Do not use outside of the port library.
Definition: gphoto2-port-info.h:38
#define GP_ERROR_LIBRARY
Error in the camera driver.
Definition: gphoto2-port-result.h:46
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:460
const char * gp_port_result_as_string(int result)
Definition: gphoto2-port-result.c:54
GPPortType
The gphoto port type.
Definition: gphoto2-port-info-list.h:34