Coverage Report

Created: 2023-06-07 06:15

/src/neomutt/progress/wdata.c
Line
Count
Source (jump to first uncovered line)
1
/**
2
 * @file
3
 * Progress Bar Window Data
4
 *
5
 * @authors
6
 * Copyright (C) 2022 Richard Russon <rich@flatcap.org>
7
 *
8
 * @copyright
9
 * This program is free software: you can redistribute it and/or modify it under
10
 * the terms of the GNU General Public License as published by the Free Software
11
 * Foundation, either version 2 of the License, or (at your option) any later
12
 * version.
13
 *
14
 * This program is distributed in the hope that it will be useful, but WITHOUT
15
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
16
 * FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
17
 * details.
18
 *
19
 * You should have received a copy of the GNU General Public License along with
20
 * this program.  If not, see <http://www.gnu.org/licenses/>.
21
 */
22
23
/**
24
 * @page progress_wdata Progress Bar Window Data
25
 *
26
 * Progress Bar Window Data
27
 */
28
29
#include "config.h"
30
#include "mutt/lib.h"
31
#include "wdata.h"
32
33
/**
34
 * progress_wdata_new - Create new Progress Bar Window Data
35
 * @retval ptr New Progress Bar Window Data
36
 */
37
struct ProgressWindowData *progress_wdata_new(void)
38
0
{
39
0
  return mutt_mem_calloc(1, sizeof(struct ProgressWindowData));
40
0
}
41
42
/**
43
 * progress_wdata_free - Free Progress Bar Window data - Implements MuttWindow::wdata_free() - @ingroup window_wdata_free
44
 */
45
void progress_wdata_free(struct MuttWindow *win, void **ptr)
46
0
{
47
0
  if (!win || !ptr || !*ptr)
48
0
    return;
49
50
0
  FREE(ptr);
51
0
}