blob: bf55baafb334c124617148ba2735b88e6d92f04d [file] [log] [blame]
Harald Welte0df904d2018-12-03 11:00:04 +01001/* (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
21void osmo_stream_srv_link_set_data(struct osmo_stream_srv_link *link, void *data) {}
22struct osmo_fd *osmo_stream_srv_get_ofd(struct osmo_stream_srv *srv) { return NULL; }
23void osmo_stream_srv_destroy(struct osmo_stream_srv *conn) {}
24struct osmo_stream_srv *osmo_stream_srv_create(void *ctx, struct osmo_stream_srv_link *link,
25 int fd, int (*cb)(struct osmo_stream_srv *conn),
26 int (*closed_cb)(struct osmo_stream_srv *conn),
27 void *data) { return NULL; }
28void osmo_stream_srv_send(struct osmo_stream_srv *conn, struct msgb *msg) {}
29void osmo_stream_srv_link_set_proto(struct osmo_stream_srv_link *link, uint16_t proto) {}
30struct osmo_fd *osmo_stream_srv_link_get_ofd(struct osmo_stream_srv_link *link) { return NULL; }
31struct osmo_stream_srv_link *osmo_stream_srv_link_create(void *ctx) { return NULL; }
32void *osmo_stream_srv_get_data(struct osmo_stream_srv *conn) { return NULL; }
33void osmo_stream_srv_link_set_nodelay(struct osmo_stream_srv_link *link, bool nodelay) {}
34void osmo_stream_srv_link_set_accept_cb(struct osmo_stream_srv_link *link, int (*accept_cb)
35 (struct osmo_stream_srv_link *link, int fd)) {}
36int osmo_stream_srv_link_open(struct osmo_stream_srv_link *link) { return 0; }
37void *osmo_stream_srv_link_get_data(struct osmo_stream_srv_link *link) { return NULL; }
38void osmo_stream_srv_link_set_port(struct osmo_stream_srv_link *link, uint16_t port) {}
39void osmo_stream_srv_link_set_addr(struct osmo_stream_srv_link *link, const char *addr) {}
40int sctp_recvmsg(int sd, void *msg, size_t len, void *from, void *fromlen, void *info, int *msg_flags) { return 0; }