From d23a815951413af100c74b38cdd09a01ca1c280a Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 16 Mar 2017 05:33:01 +0100 Subject: removing dead/legacy server/connection logic, except for in tcp/wlan/bt plugins (which will be updated 'later') --- src/conversation/gnunet-helper-audio-playback.c | 15 ++++++++------- src/conversation/microphone.c | 2 -- 2 files changed, 8 insertions(+), 9 deletions(-) (limited to 'src/conversation') diff --git a/src/conversation/gnunet-helper-audio-playback.c b/src/conversation/gnunet-helper-audio-playback.c index e965cb2aa..4344e1d41 100644 --- a/src/conversation/gnunet-helper-audio-playback.c +++ b/src/conversation/gnunet-helper-audio-playback.c @@ -549,7 +549,6 @@ ogg_demux_and_decode () */ static int stdin_receiver (void *cls, - void *client, const struct GNUNET_MessageHeader *msg) { struct AudioMessage *audio; @@ -727,12 +726,14 @@ ogg_init () ogg_sync_init (&oy); } + static void drain_callback (pa_stream*s, int success, void *userdata) { pa_threaded_mainloop_signal (m, 0); } + /** * The main function for the playback helper. * @@ -746,7 +747,7 @@ main (int argc, char *argv[]) static unsigned long long toff; char readbuf[MAXLINE]; - struct GNUNET_SERVER_MessageStreamTokenizer *stdin_mst; + struct GNUNET_MessageStreamTokenizer *stdin_mst; char c; ssize_t ret; #ifdef DEBUG_READ_PURE_OGG @@ -762,7 +763,7 @@ main (int argc, char *argv[]) GNUNET_log_strerror (GNUNET_ERROR_TYPE_ERROR, "pipe"); return 1; } - stdin_mst = GNUNET_SERVER_mst_create (&stdin_receiver, NULL); + stdin_mst = GNUNET_MST_create (&stdin_receiver, NULL); ogg_init (); pa_init (); GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, @@ -802,11 +803,11 @@ main (int argc, char *argv[]) } else #endif - GNUNET_SERVER_mst_receive (stdin_mst, NULL, - readbuf, ret, - GNUNET_NO, GNUNET_NO); + GNUNET_MST_from_buffer (stdin_mst, + readbuf, ret, + GNUNET_NO, GNUNET_NO); } - GNUNET_SERVER_mst_destroy (stdin_mst); + GNUNET_MST_destroy (stdin_mst); if (stream_out) { GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, diff --git a/src/conversation/microphone.c b/src/conversation/microphone.c index 94f52f8dc..7871433a3 100644 --- a/src/conversation/microphone.c +++ b/src/conversation/microphone.c @@ -64,13 +64,11 @@ struct Microphone * Function to process the audio from the record helper * * @param cls clsoure with our `struct Microphone` - * @param client NULL * @param msg the message from the helper * @return #GNUNET_OK on success, #GNUNET_SYSERR on error */ static int process_record_messages (void *cls, - void *client, const struct GNUNET_MessageHeader *msg) { struct Microphone *mic = cls; -- cgit v1.2.3