From 96dbb24b5087558e0b4b4a488b2b85ddc902a8f1 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Mon, 17 Oct 2011 12:52:39 +0200 Subject: 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. --- src/stream.c | 5 ----- 1 file changed, 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) -- cgit v1.2.3