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 142 of file gphoto2-list.c.

References CHECK_LIST, and gp_list_free().

{
      CHECK_LIST (list);

      list->ref_count--;

      if (!list->ref_count)
            gp_list_free (list);

      return (GP_OK);
}


Generated by  Doxygen 1.6.0   Back to index