Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Xin Wang
codes-dev
Commits
99118364
Commit
99118364
authored
Aug 08, 2013
by
Philip Carns
Browse files
make model_net_get_msg_sz static/private
parent
67206750
Changes
2
Show whitespace changes
Inline
Side-by-side
codes/model-net.h
View file @
99118364
...
...
@@ -120,8 +120,6 @@ void model_net_event_rc(
tw_lp
*
sender
,
int
message_size
);
const
int
model_net_get_msg_sz
(
int
net_id
);
/* returns pointer to LP information for simplenet module */
const
tw_lptype
*
model_net_get_lp_type
(
int
net_id
);
...
...
src/models/networks/model-net/model-net.c
View file @
99118364
...
...
@@ -22,6 +22,8 @@ extern struct model_net_method torus_method;
static
struct
model_net_method
*
method_array
[]
=
{
&
simplenet_method
,
&
torus_method
,
NULL
};
static
const
int
model_net_get_msg_sz
(
int
net_id
);
int
model_net_setup
(
char
*
name
,
int
packet_size
,
const
void
*
net_params
)
...
...
@@ -210,7 +212,7 @@ void model_net_event_rc(
}
/* returns the message size, can be either simplenet, dragonfly or torus message size*/
const
int
model_net_get_msg_sz
(
int
net_id
)
static
const
int
model_net_get_msg_sz
(
int
net_id
)
{
// TODO: Add checks on network name
// TODO: Add dragonfly and torus network models
...
...
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