X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=ucs2-afb%2Fucs_apihat.c;h=fd5d88fdb482dd43e58b9a47ecb7b643a2f3fb20;hb=2d039f447c2b91ae5e41406238eea3950436c714;hp=ff6a5cd94eba7aa0c8245b7ee4ae0689b8ac2f03;hpb=d2e42029ec04c3f224580f8007cdfbbfe0fc47a6;p=apps%2Fagl-service-unicens.git diff --git a/ucs2-afb/ucs_apihat.c b/ucs2-afb/ucs_apihat.c index ff6a5cd..fd5d88f 100644 --- a/ucs2-afb/ucs_apihat.c +++ b/ucs2-afb/ucs_apihat.c @@ -39,8 +39,8 @@ static const struct afb_verb_desc_v1 binding_verbs[] = { { .name= "initialise", .session= AFB_SESSION_NONE, .callback= ucs2Init, .info= "Parse XML & initialise Unicens " }, { .name= "setvol" , .session= AFB_SESSION_NONE, .callback= ucs2SetVol, .info= "Set Volume" }, // { .name= "monitor" , .session= AFB_SESSION_NONE, .callback= ucs2Monitor, .info= "Subscribe to network error" }, - - + + { .name= NULL } /* marker for end of the array */ }; @@ -51,24 +51,24 @@ static const struct afb_binding binding_description = { /* description conforms to VERSION 1 */ .type= AFB_BINDING_VERSION_1, .v1= { - .prefix= "unicens", - .info= "Unicens MOST Control API", + .prefix= "UNICENS", + .info= "UNICENS MOST Control API", .verbs = binding_verbs - } + } }; // this is call when after all bindings are loaded int afbBindingV1ServiceInit(struct afb_service service) { afbSrv = service; return (0); -}; +} /* * activation function for registering the binding called by afb-daemon */ const struct afb_binding *afbBindingV1Register(const struct afb_binding_interface *itf) { afbIface= itf; - + return &binding_description; /* returns the description of the binding */ }