-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: mocks: zephyr: update socket mocks
- Loading branch information
1 parent
250eded
commit f912c7c
Showing
1 changed file
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,30 @@ | ||
#include <zephyr/net/socket.h> | ||
|
||
int | ||
socket(int family, int type, int proto) { | ||
zsock_socket(int family, int type, int proto) { | ||
return 0; | ||
} | ||
|
||
int | ||
connect(int sock, const struct sockaddr *addr, socklen_t addrlen) { | ||
zsock_connect(int sock, const struct sockaddr *addr, socklen_t addrlen) { | ||
return 0; | ||
} | ||
|
||
int | ||
setsockopt(int sock, int level, int optname, const void *optval, socklen_t optlen) { | ||
zsock_setsockopt(int sock, int level, int optname, const void *optval, socklen_t optlen) { | ||
return 0; | ||
} | ||
|
||
int | ||
getaddrinfo(const char *host, const char *service, const struct addrinfo *hints, struct addrinfo **res) { | ||
zsock_getaddrinfo(const char *host, const char *service, const struct addrinfo *hints, struct addrinfo **res) { | ||
return 0; | ||
} | ||
|
||
void | ||
freeaddrinfo(struct addrinfo *ai) { | ||
zsock_freeaddrinfo(struct addrinfo *ai) { | ||
} | ||
|
||
int | ||
close(int sock) { | ||
zsock_close(int sock) { | ||
return 0; | ||
} |