libgphoto2 photo camera library (libgphoto2) API 2.4.14

- Main Page
- Related Pages
- Data Structures
- Files
- Directories

- File List
- Globals

# gphoto2-port-info-list.h

Go to the documentation of this file.

    00001
    00024 #ifndef __GPHOTO2_PORT_INFO_LIST_H__
    00025 #define __GPHOTO2_PORT_INFO_LIST_H__
    00026
    00034 typedef enum {
    00035         GP_PORT_NONE        =      0,
    00036         GP_PORT_SERIAL      = 1 << 0,
    00037         GP_PORT_USB         = 1 << 2,
    00038         GP_PORT_DISK        = 1 << 3,
    00039         GP_PORT_PTPIP       = 1 << 4,
    00040         GP_PORT_USB_DISK_DIRECT = 1 << 5,
    00041         GP_PORT_USB_SCSI    = 1 << 6
    00042 } GPPortType;
    00043
    00053 typedef struct _GPPortInfo {
    00054         GPPortType type;
    00055         char name[64];
    00056         char path[64];
    00058         /* Private */
    00059         char library_filename[1024];
    00060 } GPPortInfo;
    00061
    00062 #include <gphoto2/gphoto2-port.h>
    00063
    00064 #ifdef __cplusplus
    00065 extern "C" {
    00066 #endif /* __cplusplus */
    00067
    00068 #ifdef _GPHOTO2_INTERNAL_CODE
    00069 #include <gphoto2/gphoto2-port-log.h>
    00070 extern const StringFlagItem gpi_gphoto_port_type_map[];
    00071 #endif
    00072
    00073 /* Internals are private */
    00074 typedef struct _GPPortInfoList GPPortInfoList;
    00075
    00076 int gp_port_info_list_new  (GPPortInfoList **list);
    00077 int gp_port_info_list_free (GPPortInfoList *list);
    00078
    00079 int gp_port_info_list_append (GPPortInfoList *list, GPPortInfo info);
    00080
    00081 int gp_port_info_list_load (GPPortInfoList *list);
    00082
    00083 int gp_port_info_list_count (GPPortInfoList *list);
    00084
    00085 int gp_port_info_list_lookup_path (GPPortInfoList *list, const char *path);
    00086 int gp_port_info_list_lookup_name (GPPortInfoList *list, const char *name);
    00087
    00088 int gp_port_info_list_get_info (GPPortInfoList *list, int n, GPPortInfo *info);
    00089
    00090 const char *gp_port_message_codeset (const char*);
    00091
    00092 /* DEPRECATED */
    00093 typedef GPPortInfo gp_port_info;
    00094
    00095 #ifdef __cplusplus
    00096 }
    00097 #endif /* __cplusplus */
    00098
    00099 #endif /* __GPHOTO2_PORT_INFO_LIST_H__ */