component-loader: pass core and cancellable parameters in load()

Regarding the core parameter, the case used to be that WpComponentLoader
was a WpPlugin, so it had a reference to the core internally, but since
this is no longer a requirement, we need to pass this explicitly
This commit is contained in:
George Kiagiadakis
2023-05-26 13:04:10 +03:00
parent eb180cebe8
commit 843e7ef4dd
15 changed files with 41 additions and 40 deletions

View File

@@ -29,9 +29,9 @@ struct _WpComponentLoaderInterface
gboolean (*supports_type) (WpComponentLoader * self, const gchar * type);
void (*load) (WpComponentLoader * self, const gchar * component,
const gchar * type, WpSpaJson * args, GAsyncReadyCallback callback,
gpointer data);
void (*load) (WpComponentLoader * self, WpCore * core,
const gchar * component, const gchar * type, WpSpaJson * args,
GCancellable * cancellable, GAsyncReadyCallback callback, gpointer data);
/*< private >*/
WP_PADDING(6)