Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Software for White Rabbit PTP Core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
32
Issues
32
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Software for White Rabbit PTP Core
Commits
f61f1f86
Commit
f61f1f86
authored
May 17, 2023
by
Tristan Gingold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
netif: minor cleanup
remove unused function
parent
df6e0c97
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
12 deletions
+1
-12
netif.c
dev/netif.c
+0
-8
netif.h
include/dev/netif.h
+1
-4
No files found.
dev/netif.c
View file @
f61f1f86
...
...
@@ -22,14 +22,6 @@
static
unsigned
char
netif_n_count
=
0
;
static
struct
wrc_netif_device
netif_devs
[
WRC_NETIF_MAX_DEVICES
];
struct
wr_endpoint_device
*
netif_get_default_endpoint
(
void
)
{
if
(
netif_n_count
==
0
)
return
NULL
;
return
netif_devs
[
0
].
ep
;
}
int
netif_register_device
(
const
char
*
name
,
struct
wr_endpoint_device
*
ep
)
{
if
(
netif_n_count
>=
WRC_NETIF_MAX_DEVICES
)
...
...
include/dev/netif.h
View file @
f61f1f86
...
...
@@ -10,8 +10,6 @@
#ifndef __WRC_NETIF_H
#define __WRC_NETIF_H
struct
wrc_endpoint_dev
;
#define NETIF_LINK_DOWN 0
#define NETIF_LINK_WENT_UP 1
#define NETIF_LINK_WENT_DOWN 2
...
...
@@ -21,10 +19,9 @@ struct wrc_netif_device
{
const
char
*
name
;
struct
wr_endpoint_device
*
ep
;
int
link_state
;
unsigned
char
link_state
;
};
struct
wr_endpoint_device
*
netif_get_default_endpoint
(
void
);
int
netif_register_device
(
const
char
*
name
,
struct
wr_endpoint_device
*
ep
);
int
netif_get_device_count
(
void
);
struct
wrc_netif_device
*
netif_get_device
(
int
idx
);
...
...
Write
Preview
Markdown
is supported
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