NeoMutt  2022-04-29-247-gc6aae8
Teaching an old dog new tricks
DOXYGEN
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:165
char * mutt_param_get(const struct ParameterList *pl, const char *s)
Find a matching Parameter.
Definition: parameter.c:84
void mutt_param_delete(struct ParameterList *pl, const char *attribute)
Delete a matching Parameter.
Definition: parameter.c:142
void mutt_param_set(struct ParameterList *pl, const char *attribute, const char *value)
Set a Parameter.
Definition: parameter.c:110
void mutt_param_free_one(struct Parameter **pl)
Free a Parameter.
Definition: parameter.c:48
TAILQ_HEAD(ParameterList, Parameter)
void mutt_param_free(struct ParameterList *pl)
Free a ParameterList.
Definition: parameter.c:61
struct Parameter * mutt_param_new(void)
Create a new Parameter.
Definition: parameter.c:39
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