-STATIC AFB_restapi pluginApis[]= {
- {"init" , AFB_SESSION_CHECK, (AFB_apiCB)init , "Radio API - init"},
- {"power" , AFB_SESSION_CHECK, (AFB_apiCB)power , "Radio API - power"},
- {"mode" , AFB_SESSION_CHECK, (AFB_apiCB)mode , "Radio API - mode"},
- {"freq" , AFB_SESSION_CHECK, (AFB_apiCB)freq , "Radio API - freq"},
- {"mute" , AFB_SESSION_CHECK, (AFB_apiCB)mute , "Radio API - mute"},
- {"play" , AFB_SESSION_CHECK, (AFB_apiCB)play , "Radio API - play"},
- {"ping" , AFB_SESSION_NONE, (AFB_apiCB)ping , "Radio API - ping"},
+static const struct AFB_restapi pluginApis[]= {
+ {"init" , AFB_SESSION_CHECK, init , "Radio API - init"},
+ {"power" , AFB_SESSION_CHECK, power , "Radio API - power"},
+ {"mode" , AFB_SESSION_CHECK, mode , "Radio API - mode"},
+ {"freq" , AFB_SESSION_CHECK, freq , "Radio API - freq"},
+ {"mute" , AFB_SESSION_CHECK, mute , "Radio API - mute"},
+ {"play" , AFB_SESSION_CHECK, play , "Radio API - play"},
+ {"ping" , AFB_SESSION_NONE, ping , "Radio API - ping"},