X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafb-api.h;h=c21f3bb90e6de624fa79c80b3f77b68f6457fc9b;hb=5dd7df31306b95a3fafe6d3238d4553107a6c70f;hp=d03aaca5afcd4e4ec2bc2a954cdc1bb6f0205a65;hpb=4521c1e7ae5371ab9d639adc617d17fb4e8ded0c;p=src%2Fapp-framework-binder.git diff --git a/src/afb-api.h b/src/afb-api.h index d03aaca5..c21f3bb9 100644 --- a/src/afb-api.h +++ b/src/afb-api.h @@ -24,7 +24,7 @@ struct json_object; struct afb_api_itf { void (*call)(void *closure, struct afb_xreq *xreq); - int (*service_start)(void *closure, int share_session, int onneed); + int (*service_start)(void *closure); void (*update_hooks)(void *closure); int (*get_logmask)(void *closure); void (*set_logmask)(void *closure, int level); @@ -41,4 +41,9 @@ struct afb_api_item extern int afb_api_is_valid_name(const char *name); +static inline int afb_api_is_public(const char *name) +{ + return *name != '.'; +} +