libgphoto2 photo camera library (libgphoto2) API  2.5.10.1
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__ */
Definition: gphoto2-list.c:47
int gp_list_set_name(CameraList *list, int index, const char *name)
Definition: gphoto2-list.c:345
int gp_list_unref(CameraList *list)
Decrements the reference count of the list.
Definition: gphoto2-list.c:101
int gp_list_set_value(CameraList *list, int index, const char *value)
Definition: gphoto2-list.c:322
int gp_list_count(CameraList *list)
Definition: gphoto2-list.c:229
int gp_list_append(CameraList *list, const char *name, const char *value)
Definition: gphoto2-list.c:174
int gp_list_new(CameraList **list)
Creates a new CameraList.
Definition: gphoto2-list.c:63
int gp_list_populate(CameraList *list, const char *format, int count)
Definition: gphoto2-list.c:373
int gp_list_ref(CameraList *list)
Increments the reference count of the list.
Definition: gphoto2-list.c:82
int gp_list_get_value(CameraList *list, int index, const char **value)
Definition: gphoto2-list.c:301
int gp_list_get_name(CameraList *list, int index, const char **name)
Definition: gphoto2-list.c:280
int gp_list_sort(CameraList *list)
Definition: gphoto2-list.c:213
int gp_list_reset(CameraList *list)
Definition: gphoto2-list.c:148
int gp_list_free(CameraList *list)
Definition: gphoto2-list.c:120
int gp_list_find_by_name(CameraList *list, int *index, const char *name)
Definition: gphoto2-list.c:249