#include <gphoto2/gphoto2-port.h>
Include dependency graph for gphoto2-port-info-list.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Data Structures | |
struct | _GPPortInfo |
Information about the current port. More... | |
Typedefs | |
typedef _GPPortInfo | GPPortInfo |
Information about the current port. | |
typedef _GPPortInfoList | GPPortInfoList |
typedef GPPortInfo | gp_port_info |
Enumerations | |
enum | GPPortType { GP_PORT_NONE = 0, GP_PORT_SERIAL = 1 << 0, GP_PORT_USB = 1 << 2, GP_PORT_DISK = 1 << 3, GP_PORT_PTPIP = 1 << 4 } |
The gphoto port type. More... | |
Functions | |
int | gp_port_info_list_new (GPPortInfoList **list) |
Create a new GPPortInfoList. | |
int | gp_port_info_list_free (GPPortInfoList *list) |
Free a GPPortInfo list. | |
int | gp_port_info_list_append (GPPortInfoList *list, GPPortInfo info) |
Append a portinfo to the port information list. | |
int | gp_port_info_list_load (GPPortInfoList *list) |
Load system ports. | |
int | gp_port_info_list_count (GPPortInfoList *list) |
Number of ports in the list. | |
int | gp_port_info_list_lookup_path (GPPortInfoList *list, const char *path) |
Lookup a specific path in the list. | |
int | gp_port_info_list_lookup_name (GPPortInfoList *list, const char *name) |
Look up a name in the list. | |
int | gp_port_info_list_get_info (GPPortInfoList *list, int n, GPPortInfo *info) |
Get port information of specific entry. | |
const char * | gp_port_message_codeset (const char *) |
Specify codeset for translations. |
typedef struct _GPPortInfo GPPortInfo |
Information about the current port.
Specific information about the current port. Usually taken from the "--port=XXXX" setting from the frontend.
This is not to be confused with the driver configurable port settings in GPPortSettings.
enum GPPortType |
The gphoto port type.
Enumeration specifying the port type. The enum is providing bitmasks, but most code uses it as just the one specific values.
int gp_port_info_list_append | ( | GPPortInfoList * | list, | |
GPPortInfo | info | |||
) |
Append a portinfo to the port information list.
list | a GPPortInfoList | |
info | the info to append |
int gp_port_info_list_count | ( | GPPortInfoList * | list | ) |
Number of ports in the list.
list | a GPPortInfoList |
int gp_port_info_list_free | ( | GPPortInfoList * | list | ) |
Free a GPPortInfo list.
list | a GPPortInfoList |
int gp_port_info_list_get_info | ( | GPPortInfoList * | list, | |
int | n, | |||
GPPortInfo * | info | |||
) |
Get port information of specific entry.
list | a GPPortInfoList | |
n | the index of the entry | |
info | the returned information |
int gp_port_info_list_load | ( | GPPortInfoList * | list | ) |
Load system ports.
list | a GPPortInfoList |
int gp_port_info_list_lookup_name | ( | GPPortInfoList * | list, | |
const char * | name | |||
) |
Look up a name in the list.
list | a GPPortInfoList | |
name | a name |
int gp_port_info_list_lookup_path | ( | GPPortInfoList * | list, | |
const char * | path | |||
) |
Lookup a specific path in the list.
list | a GPPortInfoList | |
path | a path |
int gp_port_info_list_new | ( | GPPortInfoList ** | list | ) |
Create a new GPPortInfoList.
list | pointer to a GPPortInfoList* which is allocated |
const char* gp_port_message_codeset | ( | const char * | codeset | ) |
Specify codeset for translations.
This function specifies the codeset that are used for the translated strings that are passed back by the libgphoto2_port functions.
This function is called by the gp_message_codeset() function, there is no need to call it yourself.
codeset | new codeset to use |