aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@gnumonks.org>2011-10-17 12:52:39 +0200
committerPablo Neira Ayuso <pablo@gnumonks.org>2011-10-17 12:52:39 +0200
commit96dbb24b5087558e0b4b4a488b2b85ddc902a8f1 (patch)
treec6a472bf0657866c5cb5281467d60b23a27826c4 /src
parent98ec00d8d22fa855710a13aa21cfe1f66114a55b (diff)
stream: reconfiguration is only required if address and port change
No need to force reconfiguration if any of the callback or data pointers are changed.
Diffstat (limited to 'src')
-rw-r--r--src/stream.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/stream.c b/src/stream.c
index c4ff89c..782c4de 100644
--- a/src/stream.c
+++ b/src/stream.c
@@ -182,7 +182,6 @@ osmo_stream_client_conn_set_data(struct osmo_stream_client_conn *link,
void *data)
{
link->data = data;
- link->flags |= OSMO_STREAM_CLIENT_F_RECONFIG;
}
void *osmo_stream_client_conn_get_data(struct osmo_stream_client_conn *link)
@@ -195,7 +194,6 @@ osmo_stream_client_conn_set_connect_cb(struct osmo_stream_client_conn *link,
int (*connect_cb)(struct osmo_stream_client_conn *link))
{
link->connect_cb = connect_cb;
- link->flags |= OSMO_STREAM_CLIENT_F_RECONFIG;
}
void
@@ -203,7 +201,6 @@ osmo_stream_client_conn_set_read_cb(struct osmo_stream_client_conn *link,
int (*read_cb)(struct osmo_stream_client_conn *link))
{
link->read_cb = read_cb;
- link->flags |= OSMO_STREAM_CLIENT_F_RECONFIG;
}
void osmo_stream_client_conn_destroy(struct osmo_stream_client_conn *link)
@@ -353,7 +350,6 @@ osmo_stream_server_link_set_data(struct osmo_stream_server_link *link,
void *data)
{
link->data = data;
- link->flags |= OSMO_STREAM_SERVER_F_RECONFIG;
}
void *osmo_stream_server_link_get_data(struct osmo_stream_server_link *link)
@@ -366,7 +362,6 @@ void osmo_stream_server_link_set_accept_cb(struct osmo_stream_server_link *link,
{
link->accept_cb = accept_cb;
- link->flags |= OSMO_STREAM_SERVER_F_RECONFIG;
}
void osmo_stream_server_link_destroy(struct osmo_stream_server_link *link)