1 /* 2 * Copyright (C) 2019 - 2020 Intel Corporation 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 */ 6 /* 7 * This defines a simple unix domain socket listen abstraction. 8 */ 9 #ifndef _USFSTL_UDS_H_ 10 #define _USFSTL_UDS_H_ 11 #include <unistd.h> 12 #include <string.h> 13 #include <stdint.h> 14 #include "list.h" 15 16 void usfstl_uds_create(const char *path, void (*connected)(int, void *), 17 void *data); 18 void usfstl_uds_remove(const char *path); 19 20 int usfstl_uds_connect(const char *path, void (*readable)(int, void *), 21 void *data); 22 void usfstl_uds_disconnect(int fd); 23 24 #endif // _USFSTL_UDS_H_ 25