NeoMutt  2021-02-05-89-gabe350
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 
32 struct Parameter
33 {
34  char *attribute;
35  char *value;
36  TAILQ_ENTRY(Parameter) entries;
37 };
38 TAILQ_HEAD(ParameterList, Parameter);
39 
40 bool mutt_param_cmp_strict(const struct ParameterList *pl1, const struct ParameterList *pl2);
41 void mutt_param_delete (struct ParameterList *pl, const char *attribute);
42 void mutt_param_free (struct ParameterList *pl);
43 void mutt_param_free_one (struct Parameter **pl);
44 char * mutt_param_get (const struct ParameterList *pl, const char *s);
45 struct Parameter *mutt_param_new (void);
46 void mutt_param_set (struct ParameterList *pl, const char *attribute, const char *value);
47 
48 #endif /* MUTT_EMAIL_PARAMETER_H */
mutt_param_new
struct Parameter * mutt_param_new(void)
Create a new Parameter.
Definition: parameter.c:39
Parameter::value
char * value
Parameter value.
Definition: parameter.h:35
mutt_param_delete
void mutt_param_delete(struct ParameterList *pl, const char *attribute)
Delete a matching Parameter.
Definition: parameter.c:142
mutt_param_set
void mutt_param_set(struct ParameterList *pl, const char *attribute, const char *value)
Set a Parameter.
Definition: parameter.c:110
Parameter
Attribute associated with a MIME part.
Definition: parameter.h:32
mutt_param_free
void mutt_param_free(struct ParameterList *pl)
Free a ParameterList.
Definition: parameter.c:61
mutt_param_get
char * mutt_param_get(const struct ParameterList *pl, const char *s)
Find a matching Parameter.
Definition: parameter.c:84
Parameter::attribute
char * attribute
Parameter name.
Definition: parameter.h:34
lib.h
mutt_param_free_one
void mutt_param_free_one(struct Parameter **pl)
Free a Parameter.
Definition: parameter.c:48
mutt_param_cmp_strict
bool mutt_param_cmp_strict(const struct ParameterList *pl1, const struct ParameterList *pl2)
Strictly compare two ParameterLists.
Definition: parameter.c:165
TAILQ_HEAD
TAILQ_HEAD(ParameterList, Parameter)
Parameter::TAILQ_ENTRY
TAILQ_ENTRY(Parameter) entries
Linked list.