#ifndef __QRTR_H_#define __QRTR_H_#include <linux/types.h>structsk_buff;/* endpoint node id auto assignment */#define QRTR_EP_NID_AUTO (-1)/** * struct qrtr_endpoint - endpoint handle * @xmit: Callback for outgoing packets * * The socket buffer passed to the xmit function becomes owned by the endpoint * driver. As such, when the driver is done with the buffer, it should * call kfree_skb() on failure, or consume_skb() on success. */structqrtr_endpoint{int(*xmit)(structqrtr_endpoint*ep,structsk_buff*skb);/* private: not for endpoint use */structqrtr_node*node;};intqrtr_endpoint_register(structqrtr_endpoint*ep,unsignedintnid);voidqrtr_endpoint_unregister(structqrtr_endpoint*ep);intqrtr_endpoint_post(structqrtr_endpoint*ep,constvoid*data,size_tlen);#endif