1 /* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later */ 2 #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 10 struct 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 18 int pldm_responder_cookie_track(struct pldm_responder_cookie *jar, 19 struct pldm_responder_cookie *cookie); 20 21 struct pldm_responder_cookie * 22 pldm_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 27