| libgphoto2 photo camera library (libgphoto2) API
    2.5.16
    | 
#include "config.h"#include <gphoto2/gphoto2-setting.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <gphoto2/gphoto2-result.h>#include <gphoto2/gphoto2-port-log.h>#include <gphoto2/gphoto2-port-portability.h>
| Data Structures | |
| struct | Setting | 
| Macros | |
| #define | _DEFAULT_SOURCE | 
| #define | CHECK_RESULT(result) {int r = (result); if (r < 0) return (r);} | 
| Functions | |
| int | gp_setting_get (char *id, char *key, char *value) | 
| Retrieve a specific gphoto setting.  More... | |
| int | gp_setting_set (char *id, char *key, char *value) | 
| Set a specific gphoto setting.  More... | |
| int gp_setting_get | ( | char * | id, | 
| char * | key, | ||
| char * | value | ||
| ) | 
Retrieve a specific gphoto setting.
| id | the frontend id of the caller | 
| key | the key the frontend queries | 
| value | changed value | 
This function retrieves the setting key for a specific frontend id and copies the value into the passed value pointer.
| int gp_setting_set | ( | char * | id, | 
| char * | key, | ||
| char * | value | ||
| ) | 
Set a specific gphoto setting.
| id | the frontend id of the caller | 
| key | the key the frontend queries | 
| value | new value | 
This function sets the setting key for a specific frontend id to the value.