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
48c41661
Commit
48c41661
authored
10 years ago
by
Hauke Petersen
Browse files
Options
Downloads
Patches
Plain Diff
net/ng_netdev: changed semantics of get function
parent
2d064614
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sys/include/net/ng_netdev.h
+7
-6
7 additions, 6 deletions
sys/include/net/ng_netdev.h
with
7 additions
and
6 deletions
sys/include/net/ng_netdev.h
+
7
−
6
View file @
48c41661
...
...
@@ -115,17 +115,17 @@ typedef struct {
* @param[in] dev network device descriptor
* @param[in] opt option type
* @param[out] value pointer to store the option's value in
* @param[in,out] value_len the length of @p value. Must be initialized to
* the available space in @p value on call.
* @param[in] max_len maximal amount of byte that fit into @p value
*
* @return
0 on success
* @return
number of bytes written to @p value
* @return -ENODEV if @p dev is invalid
* @return -ENOTSUP if @p opt is not supported
* @return -EOVERFLOW if available space in @p value given in
* @p value_len is too small to store the option value
* @p max_len is too small to store the option value
* @return -ECANCELED if internal driver error occurred
*/
int
(
*
get
)(
ng_netdev_t
*
dev
,
ng_netconf_opt_t
opt
,
void
*
value
,
size_t
*
value
_len
);
void
*
value
,
size_t
max
_len
);
/**
* @brief Set an option value for a given network device
...
...
@@ -135,10 +135,11 @@ typedef struct {
* @param[in] value value to set
* @param[in] value_len the length of @p value
*
* @return
0 on success
* @return
number of bytes used from @p value
* @return -ENODEV if @p dev is invalid
* @return -ENOTSUP if @p opt is not supported
* @return -EINVAL if @p value is invalid
* @return -ECANCELED if internal driver error occurred
*/
int
(
*
set
)(
ng_netdev_t
*
dev
,
ng_netconf_opt_t
opt
,
void
*
value
,
size_t
value_len
);
...
...
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