NeoMutt  2024-11-14-34-g5aaf0d
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
pattern_data.h File Reference

Private Pattern Data. More...

#include <stdbool.h>
#include "mutt/lib.h"
+ Include dependency graph for pattern_data.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  PatternEntry
 A line in the Pattern Completion menu. More...
 
struct  PatternData
 Data to pass to the Pattern Functions. More...
 

Functions

 ARRAY_HEAD (PatternEntryArray, struct PatternEntry)
 
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.h.

Function Documentation

◆ ARRAY_HEAD()

ARRAY_HEAD ( PatternEntryArray  ,
struct PatternEntry   
)

◆ 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:77
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: