blob: f4ccb48c7ee3e135e9ed428ff5a856c74530a3c5 [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
Vadim Yanitskiy98f06752019-06-03 15:39:13 +070021#include <osmocom/core/linuxlist.h>
22#include <osmocom/netif/stream.h>
23
Harald Welte0df904d2018-12-03 11:00:04 +010024void osmo_stream_srv_link_set_data(struct osmo_stream_srv_link *link, void *data) {}
25struct osmo_fd *osmo_stream_srv_get_ofd(struct osmo_stream_srv *srv) { return NULL; }
26void osmo_stream_srv_destroy(struct osmo_stream_srv *conn) {}
27struct 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; }
31void osmo_stream_srv_send(struct osmo_stream_srv *conn, struct msgb *msg) {}
32void osmo_stream_srv_link_set_proto(struct osmo_stream_srv_link *link, uint16_t proto) {}
33struct osmo_fd *osmo_stream_srv_link_get_ofd(struct osmo_stream_srv_link *link) { return NULL; }
34struct osmo_stream_srv_link *osmo_stream_srv_link_create(void *ctx) { return NULL; }
35void *osmo_stream_srv_get_data(struct osmo_stream_srv *conn) { return NULL; }
36void osmo_stream_srv_link_set_nodelay(struct osmo_stream_srv_link *link, bool nodelay) {}
37void 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)) {}
39int osmo_stream_srv_link_open(struct osmo_stream_srv_link *link) { return 0; }
Max3948fcc2022-07-27 21:13:09 +070040void osmo_stream_srv_link_close(struct osmo_stream_srv_link *link) {}
Harald Welte0df904d2018-12-03 11:00:04 +010041void *osmo_stream_srv_link_get_data(struct osmo_stream_srv_link *link) { return NULL; }
Max3948fcc2022-07-27 21:13:09 +070042char *osmo_stream_srv_link_get_sockname(const struct osmo_stream_srv_link *link) { return NULL; }
Harald Welte0df904d2018-12-03 11:00:04 +010043void osmo_stream_srv_link_set_port(struct osmo_stream_srv_link *link, uint16_t port) {}
44void osmo_stream_srv_link_set_addr(struct osmo_stream_srv_link *link, const char *addr) {}
45int sctp_recvmsg(int sd, void *msg, size_t len, void *from, void *fromlen, void *info, int *msg_flags) { return 0; }
Max5346f692022-07-28 14:19:22 +070046struct gsm_sms;
47struct msc_a;
48struct gsm_trans;
Max366a3402022-08-01 23:01:24 +070049struct smpp_esme;
Max5346f692022-07-28 14:19:22 +070050bool smpp_route_smpp_first() { return false; }
Max366a3402022-08-01 23:01:24 +070051void smpp_esme_put(struct smpp_esme *esme) { return; }
Max5346f692022-07-28 14:19:22 +070052int smpp_try_deliver(struct gsm_sms *sms, struct msc_a *msc_a) { return 0; }
53int sms_route_mt_sms(struct gsm_trans *trans, struct gsm_sms *gsms) { return 0; }