Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LARN
PRRT
Commits
c3b549f4
Commit
c3b549f4
authored
Mar 14, 2016
by
Andreas Schmidt
Browse files
Renamings.
parent
1f4889cc
Pipeline
#86
failed with stage
Changes
20
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/cython/cprrt.pxd
View file @
c3b549f4
...
...
@@ -11,7 +11,7 @@ cdef extern from "pthread.h" nogil:
ctypedef
struct
pthread_cond_t
:
pass
cdef
extern
from
"prrt/stores/forward
_p
acket
_t
able.h"
:
cdef
extern
from
"prrt/stores/forward
P
acket
T
able.h"
:
cdef
struct
prrtForwardPacketTable
:
pass
...
...
@@ -29,7 +29,7 @@ cdef extern from "prrt/channelStateInformation.h":
ctypedef
prrtChannelStateInformation
PrrtChannelStateInformation
cdef
extern
from
"prrt/coding
_p
arams.h"
:
cdef
extern
from
"prrt/coding
P
arams.h"
:
cdef
struct
prrtCodingParams
:
uint8_t
k
;
uint8_t
r
;
...
...
src/cython/prrt.pyx
View file @
c3b549f4
from
libc.stdint
cimport
uint32_t
,
uint16_t
,
uint8_t
,
int32_t
cimport
cprrt
cdef
extern
from
"prrt/stores/forward
_p
acket
_t
able.c"
:
cdef
extern
from
"prrt/stores/forward
P
acket
T
able.c"
:
int
PrrtForwardPacketTable_create
(
cprrt
.
PrrtForwardPacketTable
*
fpt_prt
);
int
PrrtForwardPacketTable_test_set_is_number_relevant
(
cprrt
.
PrrtForwardPacketTable
*
fpt_ptr
,
uint16_t
seqno
);
int
PrrtForwardPacketTable_test_is_block_relevant
(
cprrt
.
PrrtForwardPacketTable
*
forwardPacketTable
,
uint16_t
start
,
uint16_t
length
);
int
PrrtForwardPacketTable_destroy
(
cprrt
.
PrrtForwardPacketTable
*
fpt_prt
);
cdef
extern
from
"prrt/processes/feedback
_r
eceiver.c"
:
cdef
extern
from
"prrt/processes/feedback
R
eceiver.c"
:
void
receive_feedback_loop
(
void
*
ptr
)
cdef
extern
from
"prrt/processes/data
_r
eceiver.c"
:
cdef
extern
from
"prrt/processes/data
R
eceiver.c"
:
void
receive_data_loop
(
void
*
ptr
)
cdef
extern
from
"prrt/processes/data
_t
ransmitter.c"
:
cdef
extern
from
"prrt/processes/data
T
ransmitter.c"
:
void
send_data_loop
(
void
*
ptr
)
cdef
extern
from
"prrt/block.c"
:
...
...
@@ -28,7 +28,7 @@ cdef extern from "prrt/channelStateInformation.c":
cdef
extern
from
"prrt/vdmcode/block_code.c"
:
int
PrrtCoder_get_coder
(
cprrt
.
PrrtCoder
**
cod
,
uint8_t
n
,
uint8_t
k
)
cdef
extern
from
"prrt/coding
_p
arams.c"
:
cdef
extern
from
"prrt/coding
P
arams.c"
:
void
PrrtCodingParams_init
(
cprrt
.
PrrtCodingParams
*
cpar
)
cdef
extern
from
"prrt/receiver.c"
:
...
...
src/prrt/CMakeLists.txt
View file @
c3b549f4
add_library
(
PRRT ../defines.h socket.c block.c block.h packet.c packet.h receiver.c receiver.h clock.c clock.h channelStateInformation.c channelStateInformation.h processes/feedback
_r
eceiver.c processes/feedback
_r
eceiver.h processes/data
_t
ransmitter.c processes/data
_t
ransmitter.h coding
_p
arams.c coding
_p
arams.h vdmcode/block_code.c vdmcode/block_code.h coding
_p
arams.c coding
_p
arams.h stores/forward
_p
acket
_t
able.c stores/forward
_p
acket
_t
able.h processes/data
_r
eceiver.c processes/data
_r
eceiver.h
)
add_library
(
PRRT ../defines.h socket.c block.c block.h packet.c packet.h receiver.c receiver.h clock.c clock.h channelStateInformation.c channelStateInformation.h processes/feedback
R
eceiver.c processes/feedback
R
eceiver.h processes/data
T
ransmitter.c processes/data
T
ransmitter.h coding
P
arams.c coding
P
arams.h vdmcode/block_code.c vdmcode/block_code.h coding
P
arams.c coding
P
arams.h stores/forward
P
acket
T
able.c stores/forward
P
acket
T
able.h processes/data
R
eceiver.c processes/data
R
eceiver.h
)
set_property
(
TARGET PRRT PROPERTY C_STANDARD 99
)
\ No newline at end of file
src/prrt/block.c
View file @
c3b549f4
...
...
@@ -5,7 +5,7 @@
#include
"../util/common.h"
#include
"packet.h"
#include
"block.h"
#include
"coding
_p
arams.h"
#include
"coding
P
arams.h"
void
gather_redundancy_packets
(
const
PrrtBlock
*
block_ptr
,
gf
*
const
*
fec
,
int
*
idx_p
)
{
...
...
src/prrt/block.h
View file @
c3b549f4
#ifndef PRRT_BLOCK_H
#define PRRT_BLOCK_H
#include
"coding
_p
arams.h"
#include
"coding
P
arams.h"
#include
"packet.h"
#include
"../util/list.h"
...
...
src/prrt/coding
_p
arams.c
→
src/prrt/coding
P
arams.c
View file @
c3b549f4
#include
"../util/common.h"
#include
"../util/dbg.h"
#include
"../defines.h"
#include
"coding
_p
arams.h"
#include
"coding
P
arams.h"
PrrtCodingParams
*
PrrtCodingParams_create
(
void
)
{
...
...
src/prrt/coding
_p
arams.h
→
src/prrt/coding
P
arams.h
View file @
c3b549f4
File moved
src/prrt/packet.h
View file @
c3b549f4
...
...
@@ -7,7 +7,7 @@
// DESTROY:
#include
<stdint.h>
#include
"coding
_p
arams.h"
#include
"coding
P
arams.h"
#include
<stdbool.h>
#define PACKET_TYPE_DATA 0
...
...
src/prrt/processes/data
_r
eceiver.c
→
src/prrt/processes/data
R
eceiver.c
View file @
c3b549f4
...
...
@@ -7,7 +7,7 @@
#include
"../block.h"
#include
"../clock.h"
#include
"../socket.h"
#include
"data
_r
eceiver.h"
#include
"data
R
eceiver.h"
void
retrieve_data_blocks
(
PrrtSocket
*
sock_ptr
,
uint16_t
base_seqno
,
uint8_t
k
,
const
PrrtBlock
*
block
)
{
...
...
src/prrt/processes/data
_r
eceiver.h
→
src/prrt/processes/data
R
eceiver.h
View file @
c3b549f4
File moved
src/prrt/processes/data
_t
ransmitter.c
→
src/prrt/processes/data
T
ransmitter.c
View file @
c3b549f4
...
...
@@ -9,7 +9,7 @@
#include
"../socket.h"
#include
"../../util/dbg.h"
#include
"../../util/common.h"
#include
"data
_t
ransmitter.h"
#include
"data
T
ransmitter.h"
bool
send_packet
(
PrrtSocket
*
sock_ptr
,
PrrtPacket
*
packet
)
{
...
...
src/prrt/processes/data
_t
ransmitter.h
→
src/prrt/processes/data
T
ransmitter.h
View file @
c3b549f4
File moved
src/prrt/processes/feedback
_r
eceiver.c
→
src/prrt/processes/feedback
R
eceiver.c
View file @
c3b549f4
...
...
@@ -6,7 +6,7 @@
#include
"../clock.h"
#include
"../packet.h"
#include
"../socket.h"
#include
"feedback
_r
eceiver.h"
#include
"feedback
R
eceiver.h"
void
*
receive_feedback_loop
(
void
*
ptr
)
{
PrrtSocket
*
sock_ptr
=
ptr
;
...
...
src/prrt/processes/feedback
_r
eceiver.h
→
src/prrt/processes/feedback
R
eceiver.h
View file @
c3b549f4
File moved
src/prrt/socket.c
View file @
c3b549f4
...
...
@@ -9,9 +9,9 @@
#include
"packet.h"
#include
"../util/dbg.h"
#include
"../util/common.h"
#include
"processes/feedback
_r
eceiver.h"
#include
"processes/data
_t
ransmitter.h"
#include
"processes/data
_r
eceiver.h"
#include
"processes/feedback
R
eceiver.h"
#include
"processes/data
T
ransmitter.h"
#include
"processes/data
R
eceiver.h"
#include
"socket.h"
#include
"block.h"
#include
"receiver.h"
...
...
src/prrt/socket.h
View file @
c3b549f4
...
...
@@ -3,7 +3,7 @@
#include
"../defines.h"
#include
"packet.h"
#include
"stores/forward
_p
acket
_t
able.h"
#include
"stores/forward
P
acket
T
able.h"
#include
"../util/list.h"
#include
"../util/bptree.h"
#include
"channelStateInformation.h"
...
...
src/prrt/stores/forward
_p
acket
_t
able.c
→
src/prrt/stores/forward
P
acket
T
able.c
View file @
c3b549f4
#include
<stdint.h>
#include
"../../defines.h"
#include
"../packet.h"
#include
"forward
_p
acket
_t
able.h"
#include
"forward
P
acket
T
able.h"
int
is_position_relevant
(
const
PrrtForwardPacketTable
*
fpt_ptr
,
uint16_t
seqno
)
{
...
...
src/prrt/stores/forward
_p
acket
_t
able.h
→
src/prrt/stores/forward
P
acket
T
able.h
View file @
c3b549f4
File moved
tests/PrrtBlock_tests.cpp
View file @
c3b549f4
...
...
@@ -4,7 +4,7 @@
extern
"C"
{
#include
"src/prrt/block.h"
#include
"src/prrt/packet.h"
#include
"src/prrt/coding
_p
arams.h"
#include
"src/prrt/coding
P
arams.h"
#include
"src/util/dbg.h"
#include
"src/prrt/vdmcode/block_code.h"
#include
"src/util/common.h"
...
...
tests/forward_packet_table_tests.cpp
View file @
c3b549f4
...
...
@@ -2,7 +2,7 @@
#include
<cmath>
extern
"C"
{
#include
"src/prrt/stores/forward
_p
acket
_t
able.h"
#include
"src/prrt/stores/forward
P
acket
T
able.h"
}
class
ForwardPacketTableTest
:
public
::
testing
::
Test
{
...
...
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