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

int gp_widget_get_parent ( CameraWidget widget,
CameraWidget **  parent 
)

Retrieves the parent of a CameraWidget.

Parameters:
widget a CameraWidget
parent the pointer to the parent to return
Returns:
a gphoto2 error code.

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

References CHECK_NULL, GP_OK, and _CameraWidget::parent.

{
      CHECK_NULL (widget && parent);

      *parent = widget->parent;

      return (GP_OK);
}


Generated by  Doxygen 1.6.0   Back to index