libgphoto2 photo camera library (libgphoto2) API 2.5.30

gphoto2-list.h
Go to the documentation of this file.
1
26#ifndef LIBGPHOTO2_GPHOTO2_LIST_H
27#define LIBGPHOTO2_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 /* !defined(LIBGPHOTO2_GPHOTO2_LIST_H) */
gp_list_new
int gp_list_new(CameraList **list)
Creates a new CameraList.
Definition: gphoto2-list.c:63
gp_list_populate
int gp_list_populate(CameraList *list, const char *format, int count)
Definition: gphoto2-list.c:373
gp_list_reset
int gp_list_reset(CameraList *list)
Definition: gphoto2-list.c:148
gp_list_set_name
int gp_list_set_name(CameraList *list, int index, const char *name)
Definition: gphoto2-list.c:345
gp_list_free
int gp_list_free(CameraList *list)
Definition: gphoto2-list.c:120
gp_list_sort
int gp_list_sort(CameraList *list)
Definition: gphoto2-list.c:213
gp_list_set_value
int gp_list_set_value(CameraList *list, int index, const char *value)
Definition: gphoto2-list.c:322
gp_list_unref
int gp_list_unref(CameraList *list)
Decrements the reference count of the list.
Definition: gphoto2-list.c:101
gp_list_append
int gp_list_append(CameraList *list, const char *name, const char *value)
Definition: gphoto2-list.c:174
gp_list_get_value
int gp_list_get_value(CameraList *list, int index, const char **value)
Definition: gphoto2-list.c:301
gp_list_find_by_name
int gp_list_find_by_name(CameraList *list, int *index, const char *name)
Definition: gphoto2-list.c:249
gp_list_count
int gp_list_count(CameraList *list)
Definition: gphoto2-list.c:229
gp_list_ref
int gp_list_ref(CameraList *list)
Increments the reference count of the list.
Definition: gphoto2-list.c:82
gp_list_get_name
int gp_list_get_name(CameraList *list, int index, const char **name)
Definition: gphoto2-list.c:280
_CameraList
Definition: gphoto2-list.c:47