/src/neomutt/compose/shared_data.c
Line | Count | Source (jump to first uncovered line) |
1 | | /** |
2 | | * @file |
3 | | * Compose Shared Data |
4 | | * |
5 | | * @authors |
6 | | * Copyright (C) 2021 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 compose_shared_data Compose Shared Data |
25 | | * |
26 | | * Compose Shared Data |
27 | | */ |
28 | | |
29 | | #include "config.h" |
30 | | #include "mutt/lib.h" |
31 | | #include "shared_data.h" |
32 | | |
33 | | /** |
34 | | * compose_shared_data_free - Create the compose shared data - Implements MuttWindow::wdata_free() - @ingroup window_wdata_free |
35 | | */ |
36 | | void compose_shared_data_free(struct MuttWindow *win, void **ptr) |
37 | 0 | { |
38 | 0 | FREE(ptr); |
39 | 0 | } |
40 | | |
41 | | /** |
42 | | * compose_shared_data_new - Free the compose shared data |
43 | | * @retval ptr New compose shared data |
44 | | */ |
45 | | struct ComposeSharedData *compose_shared_data_new(void) |
46 | 0 | { |
47 | 0 | struct ComposeSharedData *shared = mutt_mem_calloc(1, sizeof(struct ComposeSharedData)); |
48 | |
|
49 | 0 | return shared; |
50 | 0 | } |