/*
This file is part of GNUnet.
- (C) 2013, 2014 Christian Grothoff (and other contributing authors)
+ Copyright (C) 2013, 2014, 2018 GNUnet e.V.
- GNUnet is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published
- by the Free Software Foundation; either version 3, or (at your
- option) any later version.
+ GNUnet is free software: you can redistribute it and/or modify it
+ under the terms of the GNU Affero General Public License as published
+ by the Free Software Foundation, either version 3 of the License,
+ or (at your option) any later version.
GNUnet is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
+ Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
- You should have received a copy of the GNU General Public License
- along with GNUnet; see the file COPYING. If not, write to the
- Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- Boston, MA 02111-1307, USA.
+ SPDX-License-Identifier: AGPL3.0-or-later
*/
/**
* @file conversation/test_conversation_api_reject.c
static int
enable_speaker (void *cls)
{
+ (void) cls;
GNUNET_break (0);
return GNUNET_SYSERR;
}
static void
disable_speaker (void *cls)
{
+ (void) cls;
GNUNET_break (0);
}
size_t data_size,
const void *data)
{
+ (void) cls;
+ (void) data_size;
+ (void) data;
GNUNET_break (0);
}
static void
destroy_speaker (void *cls)
{
+ (void) cls;
}
GNUNET_MICROPHONE_RecordedDataCallback rdc,
void *rdc_cls)
{
+ (void) cls;
+ (void) rdc;
+ (void) rdc_cls;
GNUNET_break (0);
return GNUNET_SYSERR;
}
static void
disable_mic (void *cls)
{
+ (void) cls;
GNUNET_break (0);
}
static void
destroy_mic (void *cls)
{
+ (void) cls;
}
* Signature of the main function of a task.
*
* @param cls closure
- * @param tc context information (why was this task triggered now)
*/
static void
-end_test (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
+end_test (void *cls)
{
+ (void) cls;
GNUNET_SCHEDULER_shutdown ();
if (NULL != op)
{
}
if (NULL != phone)
{
- GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Disconnecting from PHONE service.\n");
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+ "Disconnecting from PHONE service.\n");
GNUNET_CONVERSATION_phone_destroy (phone);
phone = NULL;
}
static enum GNUNET_CONVERSATION_PhoneEventCode expect
= GNUNET_CONVERSATION_EC_PHONE_RING;
+ (void) cls;
+ (void) caller_id;
GNUNET_break (code == expect);
switch (code)
{
static enum GNUNET_CONVERSATION_CallEventCode expect
= GNUNET_CONVERSATION_EC_CALL_RINGING;
+ (void) cls;
GNUNET_break (code == expect);
switch (code)
{
case GNUNET_CONVERSATION_EC_CALL_GNS_FAIL:
case GNUNET_CONVERSATION_EC_CALL_SUSPENDED:
case GNUNET_CONVERSATION_EC_CALL_RESUMED:
+ fprintf (stderr, "Unexpected call code: %d\n", code);
+ break;
case GNUNET_CONVERSATION_EC_CALL_ERROR:
fprintf (stderr, "Unexpected call code: %d\n", code);
+ call = NULL;
break;
}
}
caller_ego_create_cont (void *cls,
const char *emsg)
{
+ (void) cls;
op = NULL;
GNUNET_assert (NULL == emsg);
}
int32_t success,
const char *emsg)
{
+ (void) cls;
qe = NULL;
GNUNET_assert (GNUNET_YES == success);
GNUNET_assert (NULL == emsg);
GNUNET_assert (NULL == op);
- op = GNUNET_IDENTITY_create (id, "caller-ego",
- &caller_ego_create_cont, NULL);
+ op = GNUNET_IDENTITY_create (id,
+ "caller-ego",
+ &caller_ego_create_cont,
+ NULL);
}
struct GNUNET_GNSRECORD_Data rd;
struct GNUNET_CRYPTO_EcdsaPublicKey pub;
+ (void) cls;
+ (void) ctx;
if (NULL == name)
return;
if (NULL == ego)
"%s",
GNUNET_GNSRECORD_pkey_to_zkey (&pub));
call = GNUNET_CONVERSATION_call_start (cfg,
- ego,
ego,
gns_name,
&call_speaker,
phone_ego_create_cont (void *cls,
const char *emsg)
{
+ (void) cls;
op = NULL;
GNUNET_assert (NULL == emsg);
}
const struct GNUNET_CONFIGURATION_Handle *c,
struct GNUNET_TESTING_Peer *peer)
{
+ (void) cls;
+ (void) peer;
cfg = c;
GNUNET_SCHEDULER_add_delayed (TIMEOUT, &end_test,
NULL);
id = GNUNET_IDENTITY_connect (cfg,
&identity_cb,
NULL);
- op = GNUNET_IDENTITY_create (id, "phone-ego", &phone_ego_create_cont, NULL);
+ op = GNUNET_IDENTITY_create (id,
+ "phone-ego",
+ &phone_ego_create_cont,
+ NULL);
ns = GNUNET_NAMESTORE_connect (cfg);
}
int
main (int argc, char *argv[])
{
+ (void) argc;
+ (void) argv;
if (0 != GNUNET_TESTING_peer_run ("test_conversation_api",
"test_conversation.conf",
&run, NULL))