Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
wireplumber
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pkg
wireplumber
Commits
58310c73
Commit
58310c73
authored
4 years ago
by
George Kiagiadakis
Browse files
Options
Downloads
Patches
Plain Diff
m-metadata: add callback for wp_object_activate()
A callback is required, NULL is not accepted by GCClosure
parent
a7dcd3b7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/module-metadata.c
+11
-1
11 additions, 1 deletion
modules/module-metadata.c
with
11 additions
and
1 deletion
modules/module-metadata.c
+
11
−
1
View file @
58310c73
...
...
@@ -24,6 +24,16 @@ wp_metadata_plugin_init (WpMetadataPlugin * self)
{
}
static
void
on_metadata_activated
(
GObject
*
obj
,
GAsyncResult
*
res
,
gpointer
user_data
)
{
g_autoptr
(
GError
)
error
=
NULL
;
if
(
!
wp_object_activate_finish
(
WP_OBJECT
(
obj
),
res
,
&
error
))
{
wp_warning_object
(
user_data
,
"failed to activate WpImplMetadata: %s"
,
error
->
message
);
}
}
static
void
wp_metadata_plugin_activate
(
WpPlugin
*
plugin
)
{
...
...
@@ -33,7 +43,7 @@ wp_metadata_plugin_activate (WpPlugin * plugin)
self
->
metadata
=
wp_impl_metadata_new
(
core
);
wp_object_activate
(
WP_OBJECT
(
self
->
metadata
),
WP_OBJECT_FEATURES_ALL
,
NULL
,
NULL
,
self
);
WP_OBJECT_FEATURES_ALL
,
NULL
,
on_metadata_activated
,
self
);
}
static
void
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment