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:
@@ -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
|
||||
|
Reference in New Issue
Block a user