Method

OmniSourceActivateContextfinish

Declaration

void
omni_source_activate_context_finish (
  OmniSourceActivateContext* self,
  GError* _error_
)

Description

Signal to the system that the input source has completed its job.

The input source must call this method under the following circumstances:

  • Start failure: After a call to omni_active_source_start(), if the operation is unsuccessful (or successfully cancelled), the input source must call this method to report the error. error must be non-null in this case.

  • End of data collection: After calling omni_source_activate_context_started(), the input source must call this method at some point to indicate that data collection has stopped. Normally, this occurs after omni_active_source_stop() is called. However, it may also be called earlier based on an implementation-specific trigger (e.g., when the target is no longer running), even inside start. error must be null in this case.

  • Cancelling data collection: After a call to omni_active_source_cancel(), the input source must call this method to indicate that data collection has been fully cancelled. error must be null in this case.

Parameters

_error_

Type: GError

No description available.

The argument can be NULL.
The instance takes ownership of the data, and is responsible for freeing it.