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.errormust 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 afteromni_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 insidestart.errormust 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.errormust be null in this case.
Parameters
_error_-
Type:
GErrorNo description available.
The argument can be NULL.The instance takes ownership of the data, and is responsible for freeing it.