2020-10-13 16:23:23 +02:00
|
|
|
from libcpp.string cimport string
|
|
|
|
|
from libcpp cimport bool
|
|
|
|
|
|
|
|
|
|
cdef extern from "selfdrive/common/params.cc":
|
|
|
|
|
pass
|
|
|
|
|
|
2021-01-11 06:57:32 +08:00
|
|
|
cdef extern from "selfdrive/common/util.cc":
|
2020-10-13 16:23:23 +02:00
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
cdef extern from "selfdrive/common/params.h":
|
2021-05-05 01:49:26 +08:00
|
|
|
cpdef enum ParamKeyType:
|
|
|
|
|
PERSISTENT
|
|
|
|
|
CLEAR_ON_MANAGER_START
|
|
|
|
|
CLEAR_ON_PANDA_DISCONNECT
|
2021-06-03 15:21:53 -07:00
|
|
|
CLEAR_ON_IGNITION_ON
|
|
|
|
|
CLEAR_ON_IGNITION_OFF
|
2021-05-05 01:49:26 +08:00
|
|
|
ALL
|
|
|
|
|
|
2020-10-13 16:23:23 +02:00
|
|
|
cdef cppclass Params:
|
2021-08-21 07:57:45 +08:00
|
|
|
Params() nogil
|
2021-06-15 12:36:01 +02:00
|
|
|
Params(string) nogil
|
2020-10-13 16:23:23 +02:00
|
|
|
string get(string, bool) nogil
|
2021-06-15 12:36:01 +02:00
|
|
|
bool getBool(string) nogil
|
|
|
|
|
int remove(string) nogil
|
|
|
|
|
int put(string, string) nogil
|
|
|
|
|
int putBool(string, bool) nogil
|
|
|
|
|
bool checkKey(string) nogil
|
2021-05-05 01:49:26 +08:00
|
|
|
void clearAll(ParamKeyType)
|