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