boardd: update cython syntax (#29031)

This commit is contained in:
Adeeb Shihadeh
2023-07-18 23:58:51 -07:00
committed by GitHub
parent 527d13ad67
commit 5cfb79e35f
2 changed files with 8 additions and 10 deletions
+8 -6
View File
@@ -4,13 +4,15 @@ from libcpp.vector cimport vector
from libcpp.string cimport string
from libcpp cimport bool
cdef struct can_frame:
long address
string dat
long busTime
long src
cdef extern from "panda.h":
cdef struct can_frame:
long address
string dat
long busTime
long src
cdef extern void can_list_to_can_capnp_cpp(const vector[can_frame] &can_list, string &out, bool sendCan, bool valid)
cdef extern from "can_list_to_can_capnp.cc":
void can_list_to_can_capnp_cpp(const vector[can_frame] &can_list, string &out, bool sendCan, bool valid)
def can_list_to_can_capnp(can_msgs, msgtype='can', valid=True):
cdef vector[can_frame] can_list