mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-19 04:13:54 +08:00
* always c++ * Create C++ params class * get works * tests hang now * passes tests * cleanup string formatting * handle interrupt in blocking read * fix memory leak * remove unused constructor * Use delete_db_value directly * Rename put -> write_db_value * filename cleanup * no semicolons in cython * Update common/SConscript Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com> * add std::string version of delete_db_value * This is handled * cleanup encoding * Add clear method to clear all * add persistent params * fix android build * Should be called clear_all * only import params when needed * set params path on manager import * recusrively create directories * Fix function order * cleanup mkdirp Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com> Co-authored-by: Comma Device <device@comma.ai>
17 lines
379 B
Cython
17 lines
379 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.c":
|
|
pass
|
|
|
|
cdef extern from "selfdrive/common/params.h":
|
|
cdef cppclass Params:
|
|
Params(bool)
|
|
Params(string)
|
|
string get(string, bool) nogil
|
|
int delete_db_value(string)
|
|
int write_db_value(string, string)
|