Andrew Jeffery | cc45aed | 2023-09-10 23:03:29 +0930 | [diff] [blame] | 1 | #ifndef LIBPLDM_SRC_RESPONDER_H |
| 2 | #define LIBPLDM_SRC_RESPONDER_H |
| 3 | |
| 4 | #include <libpldm/base.h> |
| 5 | #include <libpldm/instance-id.h> |
| 6 | |
| 7 | #include <stdint.h> |
| 8 | |
| 9 | struct pldm_responder_cookie { |
| 10 | pldm_tid_t tid; |
| 11 | pldm_instance_id_t instance_id; |
| 12 | uint8_t type; |
| 13 | uint8_t command; |
| 14 | struct pldm_responder_cookie *next; |
| 15 | }; |
| 16 | |
| 17 | int pldm_responder_cookie_track(struct pldm_responder_cookie *jar, |
| 18 | struct pldm_responder_cookie *cookie); |
| 19 | |
| 20 | struct pldm_responder_cookie * |
| 21 | pldm_responder_cookie_untrack(struct pldm_responder_cookie *jar, pldm_tid_t tid, |
| 22 | pldm_instance_id_t instance_id, uint8_t type, |
| 23 | uint8_t command); |
| 24 | |
| 25 | #endif |