Logo Search packages:      
Sourcecode: libgphoto2 version File versions

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

Retrieves the name of entry with index.

list a CameraList
index index of the entry
a gphoto2 error code.

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

References CHECK_LIST, and CHECK_NULL.

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