mirror of https://github.com/commaai/cereal.git
add function available_streams to visionipc_pyx.pyx (#424)
This commit is contained in:
parent
7492dc3f45
commit
494cd28f3b
|
@ -3,6 +3,7 @@
|
||||||
|
|
||||||
from libcpp.string cimport string
|
from libcpp.string cimport string
|
||||||
from libcpp.vector cimport vector
|
from libcpp.vector cimport vector
|
||||||
|
from libcpp.set cimport set
|
||||||
from libc.stdint cimport uint32_t, uint64_t
|
from libc.stdint cimport uint32_t, uint64_t
|
||||||
from libcpp cimport bool
|
from libcpp cimport bool
|
||||||
|
|
||||||
|
@ -40,3 +41,5 @@ cdef extern from "cereal/visionipc/visionipc_client.h":
|
||||||
VisionBuf * recv(VisionIpcBufExtra *, int)
|
VisionBuf * recv(VisionIpcBufExtra *, int)
|
||||||
bool connect(bool)
|
bool connect(bool)
|
||||||
bool is_connected()
|
bool is_connected()
|
||||||
|
@staticmethod
|
||||||
|
set[VisionStreamType] getAvailableStreams(string, bool)
|
||||||
|
|
|
@ -97,3 +97,7 @@ cdef class VisionIpcClient:
|
||||||
|
|
||||||
def is_connected(self):
|
def is_connected(self):
|
||||||
return self.client.is_connected()
|
return self.client.is_connected()
|
||||||
|
|
||||||
|
@staticmethod
|
||||||
|
def available_streams(string name, bool block):
|
||||||
|
return cppVisionIpcClient.getAvailableStreams(name, block)
|
||||||
|
|
Loading…
Reference in New Issue