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
82abe417
Commit
82abe417
authored
4 years ago
by
George Kiagiadakis
Browse files
Options
Downloads
Patches
Plain Diff
session-bin: add _get_n_children() method
parent
90c6962a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/wp/session-bin.c
+12
-0
12 additions, 0 deletions
lib/wp/session-bin.c
lib/wp/session-bin.h
+3
-0
3 additions, 0 deletions
lib/wp/session-bin.h
with
15 additions
and
0 deletions
lib/wp/session-bin.c
+
12
−
0
View file @
82abe417
...
...
@@ -117,6 +117,18 @@ wp_session_bin_remove (WpSessionBin *self, WpSessionItem *item)
return
g_ptr_array_remove_fast
(
priv
->
items
,
item
);
}
/**
* wp_session_bin_get_n_children:
* @self: the session bin
*
* Returns: the number of child items in the bin
*/
guint
wp_session_bin_get_n_children
(
WpSessionBin
*
self
)
{
WpSessionBinPrivate
*
priv
=
wp_session_bin_get_instance_private
(
self
);
return
priv
->
items
->
len
;
}
struct
_WpSessionBinIterator
{
...
...
This diff is collapsed.
Click to expand it.
lib/wp/session-bin.h
+
3
−
0
View file @
82abe417
...
...
@@ -42,6 +42,9 @@ gboolean wp_session_bin_add (WpSessionBin *self, WpSessionItem *item);
WP_API
gboolean
wp_session_bin_remove
(
WpSessionBin
*
self
,
WpSessionItem
*
item
);
WP_API
guint
wp_session_bin_get_n_children
(
WpSessionBin
*
self
);
WP_API
WpIterator
*
wp_session_bin_iterate
(
WpSessionBin
*
self
);
...
...
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