gphoto2-setting.h File Reference

Go to the source code of this file.

Functions

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.

Detailed Description

Author:
Copyright 2000 Scott Fritzinger
Note:
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

Function Documentation

int gp_setting_get ( char *  id,
char *  key,
char *  value 
)

Retrieve a specific gphoto setting.

Parameters:
id the frontend id of the caller
key the key the frontend queries
value retrieved value
Returns:
GPhoto error code

This function retrieves the setting key for a specific frontend id and copies the value into the passed value pointer.

References GP_ERROR, and GP_OK.

int gp_setting_set ( char *  id,
char *  key,
char *  value 
)

Set a specific gphoto setting.

Parameters:
id the frontend id of the caller
key the key the frontend queries
value retrieved value
Returns:
GPhoto error code

This function sets the setting key for a specific frontend id to the value.

References gp_log(), GP_LOG_DEBUG, and GP_OK.


Generated on 10 Jun 2014 for libgphoto2 photo camera library (libgphoto2) API by  doxygen 1.6.1