blob: 1295cdac13c32a53b7dd40c422576a0371bbb259 [file] [log] [blame]
Patrick Williams691668f2023-11-01 08:19:10 -05001/* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later */
Andrew Jefferycc45aed2023-09-10 23:03:29 +09302#ifndef LIBPLDM_SRC_RESPONDER_H
3#define LIBPLDM_SRC_RESPONDER_H
4
5#include <libpldm/base.h>
6#include <libpldm/instance-id.h>
7
8#include <stdint.h>
9
10struct pldm_responder_cookie {
11 pldm_tid_t tid;
12 pldm_instance_id_t instance_id;
13 uint8_t type;
14 uint8_t command;
15 struct pldm_responder_cookie *next;
16};
17
18int pldm_responder_cookie_track(struct pldm_responder_cookie *jar,
19 struct pldm_responder_cookie *cookie);
20
21struct pldm_responder_cookie *
22pldm_responder_cookie_untrack(struct pldm_responder_cookie *jar, pldm_tid_t tid,
23 pldm_instance_id_t instance_id, uint8_t type,
24 uint8_t command);
25
26#endif