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
LARN
PRRT
Commits
c92fcfed
Commit
c92fcfed
authored
Mar 10, 2016
by
Andreas Schmidt
Browse files
Update cython bindings.
parent
72b169e6
Pipeline
#78
passed with stage
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/cython/cprrt.pxd
View file @
c92fcfed
...
...
@@ -23,6 +23,12 @@ cdef extern from "prrt/vdmcode/block_code.h":
ctypedef
prrtCoder
PrrtCoder
cdef
extern
from
"prrt/channelStateInformation.h"
:
cdef
struct
prrtChannelStateInformation
:
pass
ctypedef
prrtChannelStateInformation
PrrtChannelStateInformation
cdef
extern
from
"prrt/coding_params.h"
:
cdef
struct
prrtCodingParams
:
uint8_t
k
;
...
...
@@ -131,4 +137,3 @@ cdef extern from "util/bptree.h":
BPTreeNode
*
BPTree_destroy
(
BPTreeNode
*
root
);
void
*
BPTree_get
(
BPTreeNode
*
root
,
int
key
);
void
BPTree_get_range
(
BPTreeNode
*
root
,
List
*
list
,
int
key_start
,
int
key_end
);
src/cython/prrt.pyx
View file @
c92fcfed
...
...
@@ -7,7 +7,6 @@ cdef extern from "prrt/stores/forward_packet_table.c":
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_receiver.c"
:
void
receive_feedback_loop
(
void
*
ptr
)
...
...
@@ -20,6 +19,12 @@ cdef extern from "prrt/processes/data_transmitter.c":
cdef
extern
from
"prrt/block.c"
:
cprrt
.
PrrtPacket
*
PrrtBlock_get_first_data
(
cprrt
.
PrrtBlock
*
block_ptr
)
cdef
extern
from
"prrt/clock.c"
:
uint32_t
PrrtClock_get_current_time
();
cdef
extern
from
"prrt/channelStateInformation.c"
:
void
PrrtChannelStateInformation_init
(
cprrt
.
PrrtChannelStateInformation
*
csi
)
cdef
extern
from
"prrt/vdmcode/block_code.c"
:
int
PrrtCoder_get_coder
(
cprrt
.
PrrtCoder
**
cod
,
uint8_t
n
,
uint8_t
k
)
...
...
@@ -79,4 +84,4 @@ cdef class PrrtSocket:
cprrt
.
PrrtSocket_send
(
self
.
_c_socket
,
encodedData
,
len
(
data
))
def
close
(
self
):
cprrt
.
PrrtSocket_close
(
self
.
_c_socket
)
\ No newline at end of file
cprrt
.
PrrtSocket_close
(
self
.
_c_socket
)
Write
Preview
Supports
Markdown
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