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