mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-06-30 02:52:04 +08:00
b12a444bdd
* move keys from cython to cc * consistency * passes tests * more consistency Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com> old-commit-hash: 27d3f820bf4d34bbc799cfc7ce5f9e006f0fe774
27 lines
581 B
Cython
27 lines
581 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":
|
|
cpdef enum ParamKeyType:
|
|
PERSISTENT
|
|
CLEAR_ON_MANAGER_START
|
|
CLEAR_ON_PANDA_DISCONNECT
|
|
ALL
|
|
|
|
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)
|
|
bool checkKey(string)
|
|
void clearAll(ParamKeyType)
|