hc
2024-05-10 10ebd8556b7990499c896a550e3d416b444211e6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
 * BlueALSA - ffb.c
 * Copyright (c) 2016-2018 Arkadiusz Bokowy
 *
 * This file is a part of bluez-alsa.
 *
 * This project is licensed under the terms of the MIT license.
 *
 */
 
#include "shared/ffb.h"
 
 
/**
 * Free resources allocated by the ffb_uint8_init().
 *
 * @param ffb Pointer to initialized buffer structure. */
void ffb_uint8_free(ffb_uint8_t *ffb) {
   if (ffb->data == NULL)
       return;
   free(ffb->data);
   ffb->data = NULL;
}
 
/**
 * Free resources allocated by the ffb_int16_init().
 *
 * @param ffb Pointer to initialized buffer structure. */
void ffb_int16_free(ffb_int16_t *ffb) {
   if (ffb->data == NULL)
       return;
   free(ffb->data);
   ffb->data = NULL;
}