Logo Search packages:      
Sourcecode: libgphoto2 version File versions

int gp_port_info_list_free ( GPPortInfoList list  ) 

Free a GPPortInfo list.

Parameters:
list a GPPortInfoList
Frees a GPPortInfoList structure and its internal data structures.

Returns:
a gphoto2 error code

Definition at line 141 of file gphoto2-port-info-list.c.

References CHECK_NULL, _GPPortInfoList::count, GP_OK, and _GPPortInfoList::info.

Referenced by gp_camera_init().

{
      CHECK_NULL (list);

      if (list->info) {
            free (list->info);
            list->info = NULL;
      }
      list->count = 0;

      free (list);

      return (GP_OK);
}


Generated by  Doxygen 1.6.0   Back to index