Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Julian Bouzas
WirePlumber
Commits
0552e7da
Commit
0552e7da
authored
Dec 11, 2019
by
Julian Bouzas
Browse files
parser-endpoint-link: don't parse unused state value
parent
3fe1e96e
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/module-config-policy/parser-endpoint-link.c
View file @
0552e7da
...
...
@@ -86,7 +86,6 @@ wp_parser_endpoint_link_data_destroy (gpointer p)
g_clear_pointer
(
&
data
->
te
.
endpoint_data
.
media_class
,
g_free
);
g_clear_pointer
(
&
data
->
te
.
endpoint_data
.
props
,
wp_properties_unref
);
g_clear_pointer
(
&
data
->
te
.
stream
,
g_free
);
g_clear_pointer
(
&
data
->
el
.
state
,
g_free
);
g_slice_free
(
struct
WpParserEndpointLinkData
,
data
);
}
...
...
@@ -159,7 +158,6 @@ wp_parser_endpoint_link_data_new (const gchar *location)
* stream (string)
*
* [endpoint-link]
* state (string)
* keep (bool)
*/
...
...
@@ -228,11 +226,6 @@ wp_parser_endpoint_link_data_new (const gchar *location)
if
(
!
el
)
goto
error
;
/* Get the endpoint link state */
res
->
el
.
state
=
wp_toml_table_get_string
(
el
,
"state"
);
if
(
!
res
->
el
.
state
)
res
->
el
.
state
=
g_strdup
(
"active"
);
/* Get the endpoint link keep */
res
->
el
.
keep
=
FALSE
;
wp_toml_table_get_boolean
(
el
,
"keep"
,
&
res
->
el
.
keep
);
...
...
modules/module-config-policy/parser-endpoint-link.h
View file @
0552e7da
...
...
@@ -32,7 +32,6 @@ struct WpParserEndpointLinkData {
char
*
stream
;
}
te
;
struct
EndpointLink
{
char
*
state
;
gboolean
keep
;
}
el
;
};
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment