int *count);
/**
+ * @brief Get a output object of a layer object
+ * @param[in] layer A layer object
+ * @return A TDM output object if success. Otherwise, NULL.
+ */
+tdm_output*
+tdm_layer_get_output(tdm_layer *layer, tdm_error *error);
+
+/**
* @brief Get the capabilities of a layer object.
* @param[in] layer A layer object
* @param[out] capabilities The capabilities of a layer object
unsigned int tv_sec, unsigned int tv_usec, void *user_data);
static void _tdm_layer_reset_pending_data(tdm_private_layer *private_layer);
+EXTERN tdm_output*
+tdm_layer_get_output(tdm_layer *layer, tdm_error *error)
+{
+ tdm_output *output;
+
+ LAYER_FUNC_ENTRY_ERROR();
+
+ _pthread_mutex_lock(&private_display->lock);
+
+ if (error)
+ *error = TDM_ERROR_NONE;
+
+ output = private_layer->private_output;
+
+ _pthread_mutex_unlock(&private_display->lock);
+
+ return output;
+}
+
EXTERN tdm_error
tdm_layer_get_capabilities(tdm_layer *layer, tdm_layer_capability *capabilities)
{