libgphoto2 photo camera library (libgphoto2) API: gphoto2/gphoto2-list.h Source File

libgphoto2 photo camera library (libgphoto2) API 2.5.34

Loading...
Searching...
No Matches
gphoto2-list.h
Go to the documentation of this file.
1
25
26#ifndef LIBGPHOTO2_GPHOTO2_LIST_H
27#define LIBGPHOTO2_GPHOTO2_LIST_H
28
29#ifdef __cplusplus
30extern "C" {
31#endif /* __cplusplus */
32
66 typedef struct _CameraList CameraList;
67
68int gp_list_new (CameraList **list);
69int gp_list_ref (CameraList *list);
70int gp_list_unref (CameraList *list);
71int gp_list_free (CameraList *list);
72
73int gp_list_count (CameraList *list);
74int gp_list_append (CameraList *list,
75 const char *name, const char *value);
76int gp_list_reset (CameraList *list);
77int gp_list_sort (CameraList *list);
78
79int gp_list_find_by_name (CameraList *list, int *index, const char *name);
80
81int gp_list_get_name (CameraList *list, int index, const char **name);
82int gp_list_get_value (CameraList *list, int index, const char **value);
83
84int gp_list_set_name (CameraList *list, int index, const char *name);
85int gp_list_set_value (CameraList *list, int index, const char *value);
86
87int 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) */
CameraList
struct _CameraList CameraList
A generic list.
Definition gphoto2-list.h:66
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