source sync 20190409
[platform/core/system/edge-orchestration.git] / src / scoringmgr / lib_scoring_interface.go
1 package scoringmgr
2
3 /*
4 #include "resourceservice/resourceservice.c"
5 */
6 import "C"
7 import "unsafe"
8
9 // LoadScoringGeneralInterface function
10 func LoadScoringGeneralInterface(symbol uintptr) float64 {
11
12         ret := C.wrap_myscoring(unsafe.Pointer(symbol))
13         ILog.Println(ret)
14
15         return float64(ret)
16
17 }
18
19 func StartResourceService() {
20         //NOTE : is it waiting just one second?
21         C.startResourceService()
22 }
23
24 func StopResourceService() {
25         C.stopResourceService()
26 }
27
28 //$ touch resourceservice/resourceservice.c