mirror of
https://github.com/linux-msm/qrtr.git
synced 2026-01-21 18:57:28 +01:00
Extract the libqrtr source and header file to a separate directory, making it more convinient to include the header file from other projects. Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
21 lines
740 B
C
21 lines
740 B
C
#ifndef _QRTR_LIB_H_
|
|
#define _QRTR_LIB_H_
|
|
|
|
#include <stdint.h>
|
|
|
|
int qrtr_open(int rport);
|
|
void qrtr_close(int sock);
|
|
|
|
int qrtr_sendto(int sock, uint32_t node, uint32_t port, const void *data, unsigned int sz);
|
|
int qrtr_recvfrom(int sock, void *buf, unsigned int bsz, uint32_t *node, uint32_t *port);
|
|
int qrtr_recv(int sock, void *buf, unsigned int bsz);
|
|
|
|
int qrtr_publish(int sock, uint32_t service, uint16_t version, uint16_t instance);
|
|
int qrtr_bye(int sock, uint32_t service, uint16_t version, uint16_t instance);
|
|
|
|
int qrtr_poll(int sock, unsigned int ms);
|
|
int qrtr_lookup(int sock, uint32_t service, uint16_t version, uint16_t instance, uint32_t ifilter,
|
|
void (* cb)(void *,uint32_t,uint32_t,uint32_t,uint32_t), void *udata);
|
|
|
|
#endif
|