gphoto2-port-info-list.h
Go to the documentation of this file.
#ifndef __GPHOTO2_PORT_INFO_LIST_H__
#define __GPHOTO2_PORT_INFO_LIST_H__
typedef enum {
GP_PORT_NONE = 0,
GP_PORT_SERIAL = 1 << 0,
GP_PORT_USB = 1 << 2,
GP_PORT_DISK = 1 << 3,
GP_PORT_PTPIP = 1 << 4,
GP_PORT_USB_DISK_DIRECT = 1 << 5,
GP_PORT_USB_SCSI = 1 << 6
} GPPortType;
typedef struct _GPPortInfo {
GPPortType type;
char name[64];
char path[64];
/* Private */
char library_filename[1024];
} GPPortInfo;
#include <gphoto2/gphoto2-port.h>
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
#ifdef _GPHOTO2_INTERNAL_CODE
#include <gphoto2/gphoto2-port-log.h>
extern const StringFlagItem gpi_gphoto_port_type_map[];
#endif
/* Internals are private */
typedef struct _GPPortInfoList GPPortInfoList;
int gp_port_info_list_new (GPPortInfoList **list);
int gp_port_info_list_free (GPPortInfoList *list);
int gp_port_info_list_append (GPPortInfoList *list, GPPortInfo info);
int gp_port_info_list_load (GPPortInfoList *list);
int gp_port_info_list_count (GPPortInfoList *list);
int gp_port_info_list_lookup_path (GPPortInfoList *list, const char *path);
int gp_port_info_list_lookup_name (GPPortInfoList *list, const char *name);
int gp_port_info_list_get_info (GPPortInfoList *list, int n, GPPortInfo *info);
const char *gp_port_message_codeset (const char*);
/* DEPRECATED */
typedef GPPortInfo gp_port_info;
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* __GPHOTO2_PORT_INFO_LIST_H__ */