Logo Search packages:      
Sourcecode: libgphoto2 version File versions  Download package

int gp_list_get_name ( CameraList list,
int  index,
const char **  name 
)

Retrieves the name of entry with index.

Parameters:
list a CameraList
index index of the entry
name 
Returns:
a gphoto2 error code.

Definition at line 369 of file gphoto2-list.c.

References CHECK_LIST, CHECK_NULL, and GP_OK.

Referenced by gp_camera_init(), gp_filesystem_list_files(), and gp_filesystem_list_folders().

{
      CHECK_LIST (list);
      CHECK_NULL (name);
      CHECK_INDEX_RANGE (list, index);

      *name = list->entry[index].name;

      return (GP_OK);
}


Generated by  Doxygen 1.6.0   Back to index