Skip to content

Commit

Permalink
tests: mocks: zephyr: update socket mocks
Browse files Browse the repository at this point in the history
  • Loading branch information
joelguittet committed May 22, 2024
1 parent 250eded commit f912c7c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/mocks/zephyr/src/socket.c
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;
}

0 comments on commit f912c7c

Please sign in to comment.