Retrieve a specific gphoto setting.
Definition at line 70 of file gphoto2-setting.c. References CHECK_NULL, GP_ERROR, and GP_OK. { int x; CHECK_NULL (id && key); if (!glob_setting_count) load_settings (); for (x=0; x<glob_setting_count; x++) { if ((strcmp(glob_setting[x].id, id)==0) && (strcmp(glob_setting[x].key, key)==0)) { strcpy(value, glob_setting[x].value); return (GP_OK); } } strcpy(value, ""); return(GP_ERROR); }
|