enable sqlite to cc, enable yunxin
This commit is contained in:
parent
ac01741aef
commit
235367ec7c
|
@ -19,15 +19,11 @@ import (
|
|||
)
|
||||
|
||||
func Init() {
|
||||
return
|
||||
log.Println(log.DebugLog, "Begin init skin!")
|
||||
C.SkinInit()
|
||||
log.Println(log.DebugLog, "Init skin end!")
|
||||
}
|
||||
|
||||
func GetSkinRes(key string) (path string) {
|
||||
return
|
||||
|
||||
jump := time.Now()
|
||||
defer func() {
|
||||
log.Println(log.DebugLog, "Get skin key:", key, " val:", path, " coast time:", time.Now().Sub(jump))
|
||||
|
@ -48,8 +44,6 @@ func GetSkinRes(key string) (path string) {
|
|||
}
|
||||
|
||||
func UpdateRes(jsonStr string) {
|
||||
return
|
||||
|
||||
cjsonstring := C.CString(jsonStr)
|
||||
if uintptr(unsafe.Pointer(cjsonstring)) != uintptr(0) {
|
||||
log.Println(log.DebugLog, "Begin update res!")
|
||||
|
@ -59,8 +53,6 @@ func UpdateRes(jsonStr string) {
|
|||
}
|
||||
|
||||
func UpdateResFromServer() {
|
||||
return
|
||||
|
||||
log.Println(log.DebugLog, "Begin to update res from server!")
|
||||
var req http.HttpReqHotfix
|
||||
var rsp http.HttpRspHotfix
|
||||
|
|
|
@ -12,7 +12,7 @@ import (
|
|||
)
|
||||
|
||||
const (
|
||||
DB_PATH = "file:/mnt/UDISK/golangsql.db?cache=shared&mode=memory"
|
||||
DB_PATH = "file:/mnt/UDISK/golangsql.db?cache=shared"
|
||||
SQLTABLENAME_CONFIG = "config"
|
||||
SQLFMT_CREATE_CONFIG = `CREATE TABLE IF NOT EXISTS ` + SQLTABLENAME_CONFIG + ` (
|
||||
"id" INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
|
|
|
@ -31,6 +31,7 @@ extern "C" {
|
|||
** ------------------------------------------------------------------------ */
|
||||
|
||||
#define BOARD_DMIC
|
||||
#define ENABLE_YUNXIN
|
||||
|
||||
/* ------------------------------------------------------------------------
|
||||
** Types
|
||||
|
|
Loading…
Reference in New Issue