Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
PRRT
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
37
Issues
37
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
LARN
PRRT
Commits
c92fcfed
Commit
c92fcfed
authored
Mar 10, 2016
by
Andreas Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update cython bindings.
parent
72b169e6
Pipeline
#78
passed with stage
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
3 deletions
+13
-3
src/cython/cprrt.pxd
src/cython/cprrt.pxd
+6
-1
src/cython/prrt.pyx
src/cython/prrt.pyx
+7
-2
No files found.
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
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