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

int gp_widget_unref ( CameraWidget widget  ) 

Decrements the reference count for the CameraWidget.

Parameters:
widget a CameraWidget you want to unref
Returns:
a gphoto2 error code.

Definition at line 182 of file gphoto2-widget.c.

References CHECK_NULL, GP_OK, gp_widget_free(), and _CameraWidget::ref_count.

{
      CHECK_NULL (widget);

      widget->ref_count -= 1;

      if (widget->ref_count == 0)
            gp_widget_free (widget);

      return (GP_OK);
}


Generated by  Doxygen 1.6.0   Back to index