Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RIOT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cm-projects
RIOT
Commits
c178ea87
Commit
c178ea87
authored
7 years ago
by
Sebastian Meiling
Browse files
Options
Downloads
Patches
Plain Diff
gnrc/netreg: remove gnrc_netreg_num
parent
a7b77893
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
sys/include/net/gnrc/netreg.h
+0
-13
0 additions, 13 deletions
sys/include/net/gnrc/netreg.h
sys/net/gnrc/netreg/gnrc_netreg.c
+0
-22
0 additions, 22 deletions
sys/net/gnrc/netreg/gnrc_netreg.c
with
0 additions
and
35 deletions
sys/include/net/gnrc/netreg.h
+
0
−
13
View file @
c178ea87
...
@@ -333,19 +333,6 @@ void gnrc_netreg_unregister(gnrc_nettype_t type, gnrc_netreg_entry_t *entry);
...
@@ -333,19 +333,6 @@ void gnrc_netreg_unregister(gnrc_nettype_t type, gnrc_netreg_entry_t *entry);
*/
*/
gnrc_netreg_entry_t
*
gnrc_netreg_lookup
(
gnrc_nettype_t
type
,
uint32_t
demux_ctx
);
gnrc_netreg_entry_t
*
gnrc_netreg_lookup
(
gnrc_nettype_t
type
,
uint32_t
demux_ctx
);
/**
* @brief Returns number of entries with the same gnrc_netreg_entry_t::type and
* gnrc_netreg_entry_t::demux_ctx.
*
* @param[in] type Type of the protocol.
* @param[in] demux_ctx The demultiplexing context for the registered thread.
* See gnrc_netreg_entry_t::demux_ctx.
*
* @return Number of entries with the same gnrc_netreg_entry_t::type and
* gnrc_netreg_entry_t::demux_ctx as the given parameters.
*/
int
gnrc_netreg_num
(
gnrc_nettype_t
type
,
uint32_t
demux_ctx
);
/**
/**
* @brief Returns the next entry after @p entry with the same
* @brief Returns the next entry after @p entry with the same
* gnrc_netreg_entry_t::type and gnrc_netreg_entry_t::demux_ctx as the
* gnrc_netreg_entry_t::type and gnrc_netreg_entry_t::demux_ctx as the
...
...
This diff is collapsed.
Click to expand it.
sys/net/gnrc/netreg/gnrc_netreg.c
+
0
−
22
View file @
c178ea87
...
@@ -96,28 +96,6 @@ gnrc_netreg_entry_t *gnrc_netreg_lookup(gnrc_nettype_t type, uint32_t demux_ctx)
...
@@ -96,28 +96,6 @@ gnrc_netreg_entry_t *gnrc_netreg_lookup(gnrc_nettype_t type, uint32_t demux_ctx)
return
_netreg_lookup
(
NULL
,
type
,
demux_ctx
);
return
_netreg_lookup
(
NULL
,
type
,
demux_ctx
);
}
}
int
gnrc_netreg_num
(
gnrc_nettype_t
type
,
uint32_t
demux_ctx
)
{
int
num
=
0
;
gnrc_netreg_entry_t
*
entry
;
if
(
_INVALID_TYPE
(
type
))
{
return
0
;
}
entry
=
netreg
[
type
];
while
(
entry
!=
NULL
)
{
if
(
entry
->
demux_ctx
==
demux_ctx
)
{
num
++
;
}
entry
=
entry
->
next
;
}
return
num
;
}
gnrc_netreg_entry_t
*
gnrc_netreg_getnext
(
gnrc_netreg_entry_t
*
entry
)
gnrc_netreg_entry_t
*
gnrc_netreg_getnext
(
gnrc_netreg_entry_t
*
entry
)
{
{
return
(
entry
?
_netreg_lookup
(
entry
,
0
,
entry
->
demux_ctx
)
:
NULL
);
return
(
entry
?
_netreg_lookup
(
entry
,
0
,
entry
->
demux_ctx
)
:
NULL
);
...
...
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