00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef __GPHOTO2_PORT_INFO_LIST_H__
00022 #define __GPHOTO2_PORT_INFO_LIST_H__
00023
00024 typedef enum {
00025 GP_PORT_NONE = 0,
00026 GP_PORT_SERIAL = 1 << 0,
00027 GP_PORT_USB = 1 << 2,
00028 GP_PORT_DISK = 1 << 3,
00029 GP_PORT_PTPIP = 1 << 4
00030 } GPPortType;
00031
00032 typedef struct _GPPortInfo GPPortInfo;
00033 struct _GPPortInfo {
00034 GPPortType type;
00035 char name[64];
00036 char path[64];
00037
00038
00039 char library_filename[1024];
00040 };
00041
00042 #include <gphoto2-port.h>
00043
00044 #ifdef __cplusplus
00045 extern "C" {
00046 #endif
00047
00048
00049 typedef struct _GPPortInfoList GPPortInfoList;
00050
00051 int gp_port_info_list_new (GPPortInfoList **list);
00052 int gp_port_info_list_free (GPPortInfoList *list);
00053
00054 int gp_port_info_list_append (GPPortInfoList *list, GPPortInfo info);
00055
00056 int gp_port_info_list_load (GPPortInfoList *list);
00057
00058 int gp_port_info_list_count (GPPortInfoList *list);
00059
00060 int gp_port_info_list_lookup_path (GPPortInfoList *list, const char *path);
00061 int gp_port_info_list_lookup_name (GPPortInfoList *list, const char *name);
00062
00063 int gp_port_info_list_get_info (GPPortInfoList *list, int n, GPPortInfo *info);
00064
00065 const char *gp_port_message_codeset (const char*);
00066
00067
00068 typedef GPPortInfo gp_port_info;
00069
00070 #ifdef __cplusplus
00071 }
00072 #endif
00073
00074 #endif