libgphoto2 photo camera library (libgphoto2) Internals
2.5.23
|
Go to the documentation of this file.
98 C_PARAMS (label && widget);
102 (*widget)->type = type;
103 strcpy ((*widget)->label, label);
106 (*widget)->value_int = 0;
107 (*widget)->value_float = 0.0;
108 (*widget)->value_string = NULL;
110 (*widget)->ref_count = 1;
111 (*widget)->choice_count = 0;
112 (*widget)->choice = NULL;
113 (*widget)->readonly = 0;
117 free ((*widget)->children);
118 (*widget)->children = NULL;
119 (*widget)->children_count = 0;
200 C_PARAMS (widget && info);
202 *info = widget->
info;
218 C_PARAMS (widget && info);
220 strcpy (widget->
info, info);
235 C_PARAMS (widget && name);
237 *name = widget->
name;
252 C_PARAMS (widget && name);
254 strcpy (widget->
name, name);
271 C_PARAMS (widget &&
id);
329 C_PARAMS (widget && readonly);
346 C_PARAMS (widget && type);
348 *type = widget->
type;
363 C_PARAMS (widget && label);
365 *label = widget->
label;
386 C_PARAMS (widget && value);
388 switch (widget->
type) {
395 GP_LOG_D (
"Setting value of widget '%s' to '%s'...",
396 widget->
label, (
char*) value);
413 if (widget->
value_int != *((
int*)value)) {
436 C_PARAMS (widget && value);
438 switch (widget->
type) {
472 C_PARAMS (widget && child);
500 C_PARAMS (widget && child);
549 C_PARAMS (widget && child);
550 C_PARAMS (child_number < widget->children_count);
552 *child = widget->
children[child_number];
571 C_PARAMS (widget && label && child);
573 if (strcmp (widget->
label, label) == 0) {
607 C_PARAMS (widget && child);
609 if (widget->
id ==
id) {
643 C_PARAMS (widget && child);
645 if (!strcmp (widget->
name, name)) {
676 C_PARAMS (widget && parent);
694 C_PARAMS (widget && root);
741 C_PARAMS (range && min && max && increment);
762 C_PARAMS (widget && choice);
802 C_PARAMS (widget && choice);
805 C_PARAMS (choice_number < widget->choice_count);
807 *choice = widget->
choice[choice_number];
#define GP_ERROR_BAD_PARAMETERS
Bad parameters passed.
#define GP_OK
Everything is OK.