Add new event type for new connection.
Signed-off-by: gichan2-jang <gichan2.jang@samsung.com>
NNS_EDGE_EVENT_NEW_DATA_RECEIVED,
NNS_EDGE_EVENT_CALLBACK_RELEASED,
NNS_EDGE_EVENT_CONNECTION_CLOSED,
+ NNS_EDGE_EVENT_CONNECTION_COMPLETED,
NNS_EDGE_EVENT_CUSTOM = 0x01000000
} nns_edge_event_e;
conn_data->sink_conn = conn;
}
+ ret = nns_edge_event_invoke_callback (eh->event_cb, eh->user_data,
+ NNS_EDGE_EVENT_CONNECTION_COMPLETED, NULL, 0, NULL);
+ if (ret != NNS_EDGE_ERROR_NONE) {
+ nns_edge_loge ("Failed to send an event for new connection.");
+ goto error;
+ }
done = true;
error: