[CIFIX]add extern 'C' in C++ code

This commit is contained in:
liuwentan
2022-08-11 10:50:41 +08:00
parent 14703ec4b4
commit 85c28ff17e
12 changed files with 145 additions and 24 deletions

View File

@@ -8,7 +8,13 @@
***********************************************************************************************
*/
#pragma once
#ifndef _PIO_PACKET_QUEUE_H_
#define _PIO_PACKET_QUEUE_H_
#ifdef __cpluscplus
extern "C"
{
#endif
#include <stdint.h>
@@ -61,4 +67,10 @@ int packet_copy_data(uint8_t *ptr, const uint8_t *pkt_data, uint32_t pkt_len);
void pio_packet_enqueue(struct pio_packet_queue *, struct pio_packet *);
struct pio_packet *pio_packet_dequeue(struct pio_packet_queue *);
void release_pio_packet_queue(struct pio_packet_queue *);
void release_pio_packet_queue(struct pio_packet_queue *);
#ifdef __cpluscplus
}
#endif
#endif /* _PIO_PACKET_QUEUE_H_ */