X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafb-context.h;h=a3e4e568bb133e00f4d125344c1c7406b9c55cf3;hb=afff776f7e27c8be7610cfbd23c4d1be32699ed9;hp=f1af36221ee1e23e823e372e6f6f78af559a491a;hpb=febbd43b65c6b0d480b076ead8a078979b8b3603;p=src%2Fapp-framework-binder.git diff --git a/src/afb-context.h b/src/afb-context.h index f1af3622..a3e4e568 100644 --- a/src/afb-context.h +++ b/src/afb-context.h @@ -22,7 +22,7 @@ struct afb_session; struct afb_context { struct afb_session *session; - void *api_key; + const void *api_key; struct afb_context *super; union { unsigned flags; @@ -48,7 +48,7 @@ extern const char *afb_context_uuid(struct afb_context *context); extern void *afb_context_get(struct afb_context *context); extern int afb_context_set(struct afb_context *context, void *value, void (*free_value)(void*)); -extern void *afb_context_data(struct afb_context *context, void *(*make_value)(void), void (*free_value)(void*)); +extern void *afb_context_make(struct afb_context *context, int replace, void *(*make_value)(void *closure), void (*free_value)(void *item), void *closure); extern void afb_context_close(struct afb_context *context); extern void afb_context_refresh(struct afb_context *context);