Harald Welte | 0df904d | 2018-12-03 11:00:04 +0100 | [diff] [blame] | 1 | /* (C) 2018-2019 by sysmocom s.f.m.c. GmbH |
| 2 | * All Rights Reserved |
| 3 | * |
| 4 | * Author: Harald Welte, Philipp Maier |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify |
| 7 | * it under the terms of the GNU Affero General Public License as published by |
| 8 | * the Free Software Foundation; either version 3 of the License, or |
| 9 | * (at your option) any later version. |
| 10 | * |
| 11 | * This program is distributed in the hope that it will be useful, |
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | * GNU Affero General Public License for more details. |
| 15 | * |
| 16 | * You should have received a copy of the GNU Affero General Public License |
| 17 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 18 | * |
| 19 | */ |
| 20 | |
Vadim Yanitskiy | 98f0675 | 2019-06-03 15:39:13 +0700 | [diff] [blame] | 21 | #include <osmocom/core/linuxlist.h> |
| 22 | #include <osmocom/netif/stream.h> |
| 23 | |
Harald Welte | 0df904d | 2018-12-03 11:00:04 +0100 | [diff] [blame] | 24 | void osmo_stream_srv_link_set_data(struct osmo_stream_srv_link *link, void *data) {} |
| 25 | struct osmo_fd *osmo_stream_srv_get_ofd(struct osmo_stream_srv *srv) { return NULL; } |
| 26 | void osmo_stream_srv_destroy(struct osmo_stream_srv *conn) {} |
| 27 | struct osmo_stream_srv *osmo_stream_srv_create(void *ctx, struct osmo_stream_srv_link *link, |
| 28 | int fd, int (*cb)(struct osmo_stream_srv *conn), |
| 29 | int (*closed_cb)(struct osmo_stream_srv *conn), |
| 30 | void *data) { return NULL; } |
| 31 | void osmo_stream_srv_send(struct osmo_stream_srv *conn, struct msgb *msg) {} |
| 32 | void osmo_stream_srv_link_set_proto(struct osmo_stream_srv_link *link, uint16_t proto) {} |
| 33 | struct osmo_fd *osmo_stream_srv_link_get_ofd(struct osmo_stream_srv_link *link) { return NULL; } |
| 34 | struct osmo_stream_srv_link *osmo_stream_srv_link_create(void *ctx) { return NULL; } |
| 35 | void *osmo_stream_srv_get_data(struct osmo_stream_srv *conn) { return NULL; } |
| 36 | void osmo_stream_srv_link_set_nodelay(struct osmo_stream_srv_link *link, bool nodelay) {} |
| 37 | void osmo_stream_srv_link_set_accept_cb(struct osmo_stream_srv_link *link, int (*accept_cb) |
| 38 | (struct osmo_stream_srv_link *link, int fd)) {} |
| 39 | int osmo_stream_srv_link_open(struct osmo_stream_srv_link *link) { return 0; } |
| 40 | void *osmo_stream_srv_link_get_data(struct osmo_stream_srv_link *link) { return NULL; } |
| 41 | void osmo_stream_srv_link_set_port(struct osmo_stream_srv_link *link, uint16_t port) {} |
| 42 | void osmo_stream_srv_link_set_addr(struct osmo_stream_srv_link *link, const char *addr) {} |
| 43 | int sctp_recvmsg(int sd, void *msg, size_t len, void *from, void *fromlen, void *info, int *msg_flags) { return 0; } |