view libgsmhr1/rxfe_create.c @ 584:fc7a59deb3c3

hrutil: new program gsmhr-tfo-xfrm
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 14 Feb 2025 01:34:48 +0000
parents 9cda792c0dd7
children
line wrap: on
line source

/*
 * Here we implement gsmhr_rxfe_create() function: allocation of a
 * free-standing RxFE state structure, used for our TFO transform.
 */

#include <stdint.h>
#include <stdlib.h>
#include "tw_gsmhr.h"
#include "typedefs.h"
#include "namespace.h"
#include "rxfe.h"

struct gsmhr_rxfe_state *gsmhr_rxfe_create(void)
{
	struct gsmhr_rxfe_state *st;

	st = malloc(sizeof(struct gsmhr_rxfe_state));
	if (st)
		gsmhr_rxfe_reset(st);
	return st;
}