NeoMutt  2019-12-07-60-g0cfa53
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/mutt.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 */
char * attribute
Parameter name.
Definition: parameter.h:34
void mutt_param_free(struct ParameterList *pl)
Free a ParameterList.
Definition: parameter.c:61
char * mutt_param_get(const struct ParameterList *pl, const char *s)
Find a matching Parameter.
Definition: parameter.c:84
void mutt_param_set(struct ParameterList *pl, const char *attribute, const char *value)
Set a Parameter.
Definition: parameter.c:110
TAILQ_HEAD(ParameterList, Parameter)
bool mutt_param_cmp_strict(const struct ParameterList *pl1, const struct ParameterList *pl2)
Strictly compare two ParameterLists.
Definition: parameter.c:165
TAILQ_ENTRY(Parameter) entries
Linked list.
struct Parameter * mutt_param_new(void)
Create a new Parameter.
Definition: parameter.c:39
char * value
Parameter value.
Definition: parameter.h:35
Attribute associated with a MIME part.
Definition: parameter.h:32
void mutt_param_free_one(struct Parameter **pl)
Free a Parameter.
Definition: parameter.c:48
void mutt_param_delete(struct ParameterList *pl, const char *attribute)
Delete a matching Parameter.
Definition: parameter.c:142