X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fsession.h;h=af0741004e76534c21084d79497658f48c8b0193;hb=9ee05e42384b34d8626cd8cccfd50538136f369f;hp=c2722455b3bf7024d2eb6f347c0e801c51b2710c;hpb=f1b901ed676b2d45ec8e6ae3d6ef2f94d79f9ee6;p=src%2Fapp-framework-binder.git diff --git a/src/session.h b/src/session.h index c2722455..af074100 100644 --- a/src/session.h +++ b/src/session.h @@ -1,5 +1,5 @@ /* - * Copyright 2016 IoT.bzh + * Copyright (C) 2016 "IoT.bzh" * Author: José Bollo * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -23,6 +23,7 @@ struct AFB_clientCtx; struct afb_event_listener_itf { void (*send)(void *closure, const char *event, struct json_object *object); + int (*expects)(void *closure, const char *event); }; struct afb_event_listener @@ -47,6 +48,8 @@ extern void ctxTokenNew (struct AFB_clientCtx *clientCtx); extern const char *ctxClientGetUuid (struct AFB_clientCtx *clientCtx); extern const char *ctxClientGetToken (struct AFB_clientCtx *clientCtx); +extern unsigned ctxClientGetLOA (struct AFB_clientCtx *clientCtx); +extern void ctxClientSetLOA (struct AFB_clientCtx *clientCtx, unsigned loa); extern void *ctxClientValueGet(struct AFB_clientCtx *clientCtx, int index); extern void ctxClientValueSet(struct AFB_clientCtx *clientCtx, int index, void *value, void (*free_value)(void*));