mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-19 15:53:57 +08:00
* add putBool/getBool wrappers to cython class
* use new API
* some more puts
* fix mockparams arguments
* add get_bool to MockParams
* typo
old-commit-hash: ae094042ad
19 lines
415 B
Cython
19 lines
415 B
Cython
from libcpp.string cimport string
|
|
from libcpp cimport bool
|
|
|
|
cdef extern from "selfdrive/common/params.cc":
|
|
pass
|
|
|
|
cdef extern from "selfdrive/common/util.cc":
|
|
pass
|
|
|
|
cdef extern from "selfdrive/common/params.h":
|
|
cdef cppclass Params:
|
|
Params(bool)
|
|
Params(string)
|
|
string get(string, bool) nogil
|
|
bool getBool(string)
|
|
int remove(string)
|
|
int put(string, string)
|
|
int putBool(string, bool)
|