Logo Search packages:      
Sourcecode: libgphoto2 version File versions

int gp_list_unref ( CameraList list  ) 

Decrements the reference count of the list.

Parameters:
list a CameraList
Returns:
a gphoto2 error code
If there are no references left, the list will be freed.

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

References CHECK_LIST, gp_list_free(), and GP_OK.

{
      CHECK_LIST (list);

      if (list->ref_count == 1) /* time to free */
            gp_list_free (list);
      else
            list->ref_count--;
      return (GP_OK);
}


Generated by  Doxygen 1.6.0   Back to index