#include "config.h"#include <gphoto2/gphoto2-setting.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <unistd.h>#include <gphoto2/gphoto2-result.h>#include <gphoto2/gphoto2-port-log.h>#include <gphoto2/gphoto2-port-portability.h>

| Data Structures | |
| struct | Setting | 
| Defines | |
| #define | GP_MODULE "setting" | 
| #define | CHECK_NULL(r) {if (!(r)) return (GP_ERROR_BAD_PARAMETERS);} | 
| #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. | |
| int | gp_setting_set (char *id, char *key, char *value) | 
| Set a specific gphoto setting. | |
| 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 | retrieved value | 
| 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 | retrieved value | 
References gp_log(), GP_LOG_DEBUG, and GP_OK.
 1.5.5
 1.5.5