NeoMutt  2024-12-12-14-g7b49f7
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
pattern_data.c File Reference

Private Pattern Data. More...

#include "config.h"
#include <stddef.h>
#include "pattern_data.h"
+ Include dependency graph for pattern_data.c:

Go to the source code of this file.

Functions

struct PatternDatapattern_data_new (void)
 Create new Pattern Data.
 
void pattern_data_free (struct Menu *menu, void **ptr)
 Free Pattern Data - Implements Menu::mdata_free() -.
 

Detailed Description

Private Pattern Data.

Authors
  • Richard Russon

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Definition in file pattern_data.c.

Function Documentation

◆ pattern_data_new()

struct PatternData * pattern_data_new ( void  )

Create new Pattern Data.

Return values
ptrNew Pattern Data

Definition at line 37 of file pattern_data.c.

38{
39 struct PatternData *pd = mutt_mem_calloc(1, sizeof(struct PatternData));
40
41 ARRAY_INIT(&pd->entries);
42
43 return pd;
44}
#define ARRAY_INIT(head)
Initialize an array.
Definition: array.h:65
void * mutt_mem_calloc(size_t nmemb, size_t size)
Allocate zeroed memory on the heap.
Definition: memory.c:76
Data to pass to the Pattern Functions.
Definition: pattern_data.h:47
struct PatternEntryArray entries
Patterns for the Menu.
Definition: pattern_data.h:52
+ Here is the call graph for this function:
+ Here is the caller graph for this function: