libgphoto2 photo camera library (libgphoto2) API 2.5.24

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