0001
0002 #ifndef __QRTR_H_
0003 #define __QRTR_H_
0004
0005 #include <linux/types.h>
0006
0007 struct sk_buff;
0008
0009
0010 #define QRTR_EP_NID_AUTO (-1)
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020 struct qrtr_endpoint {
0021 int (*xmit)(struct qrtr_endpoint *ep, struct sk_buff *skb);
0022
0023 struct qrtr_node *node;
0024 };
0025
0026 int qrtr_endpoint_register(struct qrtr_endpoint *ep, unsigned int nid);
0027
0028 void qrtr_endpoint_unregister(struct qrtr_endpoint *ep);
0029
0030 int qrtr_endpoint_post(struct qrtr_endpoint *ep, const void *data, size_t len);
0031
0032 int qrtr_ns_init(void);
0033
0034 void qrtr_ns_remove(void);
0035
0036 #endif