libgphoto2 photo camera library (libgphoto2) API 2.5.2

- Main Page
- Related Pages
- Data Structures
- Files

- File List
- Globals

gphoto2-list.h
Go to the documentation of this file.
1
26 #ifndef __GPHOTO2_LIST_H__
27 #define __GPHOTO2_LIST_H__
28
29 #ifdef __cplusplus
30 extern "C" {
31 #endif /* __cplusplus */
32
66 typedef struct _CameraList CameraList;
67
68 int gp_list_new (CameraList **list);
69 int gp_list_ref (CameraList *list);
70 int gp_list_unref (CameraList *list);
71 int gp_list_free (CameraList *list);
72
73 int gp_list_count (CameraList *list);
74 int gp_list_append (CameraList *list,
75 const char *name, const char *value);
76 int gp_list_reset (CameraList *list);
77 int gp_list_sort (CameraList *list);
78
79 int gp_list_find_by_name (CameraList *list, int *index, const char *name);
80
81 int gp_list_get_name (CameraList *list, int index, const char **name);
82 int gp_list_get_value (CameraList *list, int index, const char **value);
83
84 int gp_list_set_name (CameraList *list, int index, const char *name);
85 int gp_list_set_value (CameraList *list, int index, const char *value);
86
87 int gp_list_populate (CameraList *list, const char *format, int count);
88
89 #ifdef __cplusplus
90 }
91 #endif /* __cplusplus */
92
93 #endif /* __GPHOTO2_LIST_H__ */