component-loader: add a load_finish() vfunc to finish the async operation

It's not acceptable to assume that the underlying implementation uses a GTask,
so we have to defer the finish function to the implementation as well
This commit is contained in:
George Kiagiadakis
2023-05-26 19:21:51 +03:00
parent 41c9de30bf
commit d0e96358ea
4 changed files with 44 additions and 5 deletions

View File

@@ -33,8 +33,11 @@ struct _WpComponentLoaderInterface
const gchar * component, const gchar * type, WpSpaJson * args,
GCancellable * cancellable, GAsyncReadyCallback callback, gpointer data);
GObject * (*load_finish) (WpComponentLoader * self, GAsyncResult * res,
GError ** error);
/*< private >*/
WP_PADDING(6)
WP_PADDING(5)
};
WP_API