NeoMutt  2024-11-14-34-g5aaf0d
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
parameter.h
Go to the documentation of this file.
1
23#ifndef MUTT_EMAIL_PARAMETER_H
24#define MUTT_EMAIL_PARAMETER_H
25
26#include <stdbool.h>
27#include "mutt/lib.h"
28
33{
34 char *attribute;
35 char *value;
37};
38TAILQ_HEAD(ParameterList, Parameter);
39
40bool mutt_param_cmp_strict(const struct ParameterList *pl1, const struct ParameterList *pl2);
41void mutt_param_delete (struct ParameterList *pl, const char *attribute);
42void mutt_param_free (struct ParameterList *pl);
43void mutt_param_free_one (struct Parameter **pl);
44char * mutt_param_get (const struct ParameterList *pl, const char *s);
45struct Parameter *mutt_param_new (void);
46void mutt_param_set (struct ParameterList *pl, const char *attribute, const char *value);
47
48#endif /* MUTT_EMAIL_PARAMETER_H */
Convenience wrapper for the library headers.
bool mutt_param_cmp_strict(const struct ParameterList *pl1, const struct ParameterList *pl2)
Strictly compare two ParameterLists.
Definition: parameter.c:166
char * mutt_param_get(const struct ParameterList *pl, const char *s)
Find a matching Parameter.
Definition: parameter.c:85
void mutt_param_delete(struct ParameterList *pl, const char *attribute)
Delete a matching Parameter.
Definition: parameter.c:143
void mutt_param_set(struct ParameterList *pl, const char *attribute, const char *value)
Set a Parameter.
Definition: parameter.c:111
void mutt_param_free_one(struct Parameter **pl)
Free a Parameter.
Definition: parameter.c:49
void mutt_param_free(struct ParameterList *pl)
Free a ParameterList.
Definition: parameter.c:62
struct Parameter * mutt_param_new(void)
Create a new Parameter.
Definition: parameter.c:40
#define TAILQ_HEAD(name, type)
Definition: queue.h:623
Attribute associated with a MIME part.
Definition: parameter.h:33
TAILQ_ENTRY(Parameter) entries
Linked list.
char * attribute
Parameter name.
Definition: parameter.h:34
char * value
Parameter value.
Definition: parameter.h:35