Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
PolyORB-HI-C
Commits
d2978101
Commit
d2978101
authored
Jan 16, 2014
by
yoogx
Browse files
* (__po_hi_msg_read): remove dead function
parent
1d420b46
Changes
2
Hide whitespace changes
Inline
Side-by-side
include/po_hi_messages.h
View file @
d2978101
...
...
@@ -5,7 +5,7 @@
*
* For more informations, please visit http://assert-project.net/taste
*
* Copyright (C) 2007-2009 Telecom ParisTech, 2010-201
2
ESA & ISAE.
* Copyright (C) 2007-2009 Telecom ParisTech, 2010-201
4
ESA & ISAE.
*/
#ifndef __PO_HI_MESSAGES_H_
...
...
@@ -14,7 +14,7 @@
#include
<po_hi_config.h>
#include
<po_hi_types.h>
#include
<request.h>
#include
<request.h>
/* This file may not be generated. However, using messages implies
using request. */
...
...
@@ -37,26 +37,18 @@ typedef struct
void
__po_hi_msg_reallocate
(
__po_hi_msg_t
*
message
);
/*
* Reset the message given in parameter
/*
* Reset the message given in parameter
*/
void
__po_hi_msg_write
(
__po_hi_msg_t
*
msg
,
void
*
data
,
void
__po_hi_msg_write
(
__po_hi_msg_t
*
msg
,
void
*
data
,
__po_hi_uint32_t
len
);
/*
* Write the data at the beginning of the specified message. Length
* of the data are specified by the parameter len
*/
void
__po_hi_msg_read
(
__po_hi_msg_t
*
msg
,
void
*
data
,
__po_hi_uint32_t
len
);
/*
* Read the data in the specified message. The data are taken from the
* message and copied into the variable data. Length of the data are
* specified by the parameter len
*/
int
__po_hi_msg_length
(
__po_hi_msg_t
*
msg
);
/*
...
...
src/po_hi_messages.c
View file @
d2978101
...
...
@@ -5,7 +5,7 @@
*
* For more informations, please visit http://assert-project.net/taste
*
* Copyright (C) 2007-2009 Telecom ParisTech, 2010-201
2
ESA & ISAE.
* Copyright (C) 2007-2009 Telecom ParisTech, 2010-201
4
ESA & ISAE.
*/
#include
<po_hi_config.h>
...
...
@@ -34,22 +34,13 @@ void __po_hi_msg_reallocate (__po_hi_msg_t* message)
memset
(
message
->
content
,
0
,
__PO_HI_MESSAGES_MAX_SIZE
);
}
void
__po_hi_msg_write
(
__po_hi_msg_t
*
msg
,
void
*
data
,
void
__po_hi_msg_write
(
__po_hi_msg_t
*
msg
,
void
*
data
,
__po_hi_uint32_t
len
)
{
memcpy
(
msg
->
content
,
data
,
len
);
msg
->
length
=
len
;
}
void
__po_hi_msg_read
(
__po_hi_msg_t
*
msg
,
void
*
data
,
__po_hi_uint32_t
len
)
{
memcpy
(
data
,
msg
->
content
,
len
);
msg
->
length
-=
len
;
}
int
__po_hi_msg_length
(
__po_hi_msg_t
*
msg
)
{
return
(
msg
->
length
);
...
...
@@ -59,8 +50,8 @@ int __po_hi_msg_length (__po_hi_msg_t* msg)
void
__po_hi_msg_copy
(
__po_hi_msg_t
*
dest
,
__po_hi_msg_t
*
src
)
{
memcpy
(
dest
->
content
,
src
->
content
,
memcpy
(
dest
->
content
,
src
->
content
,
__PO_HI_MESSAGES_MAX_SIZE
);
dest
->
length
=
src
->
length
;
}
...
...
@@ -137,7 +128,7 @@ void __po_hi_messages_debug (__po_hi_msg_t* msg)
for
(
i
=
0
;
i
<
50
;
i
++
)
Hexa
[
i
]
=
' '
;
for
(
i
=
0
;
i
<
17
;
i
++
)
ASCII
[
i
]
=
' '
;
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment