aboutsummaryrefslogtreecommitdiffstats
path: root/libcoopgamma_skip_message.c
blob: f9e8d1fd519cbd779a03ce07c1c0b389825b1323 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* See LICENSE file for copyright and license details. */
#include "common.h"


/**
 * Tell the library that you will not be parsing a receive message
 * 
 * @param  ctx  The state of the library, must be connected
 */
void
libcoopgamma_skip_message(libcoopgamma_context_t *restrict ctx)
{
	size_t _n;
	while (*libcoopgamma_next_header__(ctx));
	(void) libcoopgamma_next_payload__(ctx, &_n);
}