X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafb-context.h;h=687155bb4e295a407cfbd1dcd2cb0898152d8082;hb=refs%2Fheads%2Fsandbox%2FDDTLK%2Fpakage;hp=47e488c4e23fb04f56fad83d5772aed0d3188dc3;hpb=4776245dfb0ca70058881bc2059dc992581d041b;p=src%2Fapp-framework-binder.git diff --git a/src/afb-context.h b/src/afb-context.h index 47e488c4..687155bb 100644 --- a/src/afb-context.h +++ b/src/afb-context.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2016, 2017 "IoT.bzh" + * Copyright (C) 2016, 2017, 2018 "IoT.bzh" * Author: José Bollo * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -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);