diff options
| author | yangwei <[email protected]> | 2024-06-05 20:51:37 +0800 |
|---|---|---|
| committer | yangwei <[email protected]> | 2024-06-05 20:51:37 +0800 |
| commit | fb66c180298e5984b588bfee9ae671787a82c19b (patch) | |
| tree | 542e59a7e42a0c4301aedb4e656d65bd03ea9b56 /src/dealpkt/plug_support.c | |
| parent | 265cfeb2441f7c3c576f0486a00423631208c324 (diff) | |
✨ feat(stream_rawpkt.h): add MESA_detain_rawpkt_get0
Diffstat (limited to 'src/dealpkt/plug_support.c')
| -rw-r--r-- | src/dealpkt/plug_support.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/dealpkt/plug_support.c b/src/dealpkt/plug_support.c index 9f0fcc6..d82585b 100644 --- a/src/dealpkt/plug_support.c +++ b/src/dealpkt/plug_support.c @@ -27,6 +27,12 @@ static struct segment_id_list *segment_id_list_dup(sapp_mem_type_t type, int tid return dlist;
}
+inline void *MESA_detain_rawpkt_get0(struct detain_pkt *pkt)
+{
+ if(pkt==NULL)return NULL;
+ return (void *)pkt->original;
+}
+
struct detain_pkt* MESA_rawpkt_detain(const struct streaminfo *pstream, const void *rawpkt)
{
if(pstream == NULL || rawpkt == NULL)return NULL;
|
