libgphoto2 photo camera library (libgphoto2) API
2.4.14
Main Page
Related Pages
Data Structures
Files
File List
Globals
gphoto2-port-info-list.h
Go to the documentation of this file.
1
24
#ifndef __GPHOTO2_PORT_INFO_LIST_H__
25
#define __GPHOTO2_PORT_INFO_LIST_H__
26
34
typedef
enum
{
35
GP_PORT_NONE
= 0,
36
GP_PORT_SERIAL
= 1 << 0,
37
GP_PORT_USB
= 1 << 2,
38
GP_PORT_DISK
= 1 << 3,
39
GP_PORT_PTPIP
= 1 << 4,
40
GP_PORT_USB_DISK_DIRECT
= 1 << 5,
41
GP_PORT_USB_SCSI
= 1 << 6
42
}
GPPortType
;
43
53
typedef
struct
_GPPortInfo
{
54
GPPortType
type
;
55
char
name
[64];
56
char
path
[64];
58
/* Private */
59
char
library_filename
[1024];
60
}
GPPortInfo
;
61
62
#include <
gphoto2/gphoto2-port.h
>
63
64
#ifdef __cplusplus
65
extern
"C"
{
66
#endif
/* __cplusplus */
67
68
#ifdef _GPHOTO2_INTERNAL_CODE
69
#include <
gphoto2/gphoto2-port-log.h
>
70
extern
const
StringFlagItem gpi_gphoto_port_type_map[];
71
#endif
72
73
/* Internals are private */
74
typedef
struct
_GPPortInfoList
GPPortInfoList;
75
76
int
gp_port_info_list_new
(GPPortInfoList **list);
77
int
gp_port_info_list_free
(GPPortInfoList *list);
78
79
int
gp_port_info_list_append
(GPPortInfoList *list,
GPPortInfo
info);
80
81
int
gp_port_info_list_load
(GPPortInfoList *list);
82
83
int
gp_port_info_list_count
(GPPortInfoList *list);
84
85
int
gp_port_info_list_lookup_path
(GPPortInfoList *list,
const
char
*path);
86
int
gp_port_info_list_lookup_name
(GPPortInfoList *list,
const
char
*name);
87
88
int
gp_port_info_list_get_info
(GPPortInfoList *list,
int
n,
GPPortInfo
*info);
89
90
const
char
*
gp_port_message_codeset
(
const
char
*);
91
92
/* DEPRECATED */
93
typedef
GPPortInfo
gp_port_info
;
94
95
#ifdef __cplusplus
96
}
97
#endif
/* __cplusplus */
98
99
#endif
/* __GPHOTO2_PORT_INFO_LIST_H__ */
libgphoto2_port
gphoto2
gphoto2-port-info-list.h
Generated on Thu Mar 20 2014 08:53:15 for libgphoto2 photo camera library (libgphoto2) API by
1.8.1.2