Commit d2978101 authored by yoogx's avatar yoogx

* (__po_hi_msg_read): remove dead function

parent 1d420b46
......@@ -5,7 +5,7 @@
*
* For more informations, please visit http://assert-project.net/taste
*
* Copyright (C) 2007-2009 Telecom ParisTech, 2010-2012 ESA & ISAE.
* Copyright (C) 2007-2009 Telecom ParisTech, 2010-2014 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);
/*
......
......@@ -5,7 +5,7 @@
*
* For more informations, please visit http://assert-project.net/taste
*
* Copyright (C) 2007-2009 Telecom ParisTech, 2010-2012 ESA & ISAE.
* Copyright (C) 2007-2009 Telecom ParisTech, 2010-2014 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] = ' ';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment