
Untitled
By: a guest on
Jul 10th, 2012 | syntax:
None | size: 0.72 KB | hits: 15 | expires: Never
static void
__callback_merge_from_DHT (int local, int remote, struct Tweet* tweet, void* cls)
{
GNUNET_assert (cls == NULL);
if (local == GNUNET_YES && remote == GNUNET_YES)
{
tweet->censored = GNUNET_NO;
//POPDBG ("known tweet (both) %s\n", tweet->content);
}
if (local == GNUNET_NO && remote == GNUNET_NO)
{
tweet->censored = GNUNET_SYSERR;
GNUNET_break (0);
}
if (local == GNUNET_NO && remote == GNUNET_YES)
{
POPDBG ("censored tweet %llu `%s'\n", tweet->id, tweet->content);
tweet->censored = GNUNET_YES;
}
if (local == GNUNET_YES && remote == GNUNET_NO)
{
tweet->censored = GNUNET_NO;
//POPDBG ("known tweet (local) %s\n", tweet->content);
}
}