NeoMutt  2021-02-05-89-gabe350
Teaching an old dog new tricks
DOXYGEN
lib.h
Go to the documentation of this file.
1 
39 #ifndef MUTT_DEBUG_LIB_H
40 #define MUTT_DEBUG_LIB_H
41 
42 #include <stddef.h>
43 #include <stdbool.h>
44 #include "email/lib.h"
45 
46 struct AddressList;
47 struct Buffer;
48 struct Context;
49 struct ListHead;
50 struct MuttWindow;
51 struct NotifyCallback;
52 
53 // Backtrace
54 void show_backtrace(void);
55 
56 // Common
57 const char *win_name(const struct MuttWindow *win);
58 
59 // Email
60 void add_flag (struct Buffer *buf, bool is_set, const char *name);
61 void dump_addr_list (char *buf, size_t buflen, const struct AddressList *al, const char *name);
62 void dump_attach (const struct AttachPtr *att);
63 void dump_body (const struct Body *body);
64 void dump_email (const struct Email *e);
65 void dump_envelope (const struct Envelope *env);
66 void dump_list_head (const struct ListHead *list, const char *name);
67 void dump_param_list (const struct ParameterList *pl);
68 const char *get_content_disposition(enum ContentDisposition disp);
69 const char *get_content_encoding (enum ContentEncoding enc);
70 const char *get_content_type (enum ContentType type);
71 
72 // Graphviz
73 void add_flag (struct Buffer *buf, bool is_set, const char *name);
74 void dump_graphviz (const char *title, struct Context *ctx);
75 void dump_graphviz_attach_ctx(struct AttachCtx *actx);
76 void dump_graphviz_email (struct Email *e);
77 const char *get_content_disposition(enum ContentDisposition disp);
78 const char *get_content_encoding (enum ContentEncoding enc);
79 const char *get_content_type (enum ContentType type);
80 
81 // Notify
83 
84 // Parse Set
85 void test_parse_set(void);
86 
87 // Window
88 void debug_win_dump(void);
89 
90 #endif /* MUTT_DEBUG_LIB_H */
Envelope
The header of an Email.
Definition: envelope.h:54
AttachCtx
A set of attachments.
Definition: attach.h:49
get_content_type
const char * get_content_type(enum ContentType type)
Definition: graphviz.c:67
dump_list_head
void dump_list_head(const struct ListHead *list, const char *name)
Definition: email.c:46
NotifyCallback
Data passed to a notification function.
Definition: observer.h:39
Buffer
String manipulation buffer.
Definition: buffer.h:33
test_parse_set
void test_parse_set(void)
Test the config parsing.
Definition: parse_test.c:39
Body
The body of an email.
Definition: body.h:34
AttachPtr
An email to which things will be attached.
Definition: attach.h:34
MuttWindow
A division of the screen.
Definition: mutt_window.h:115
ContentEncoding
ContentEncoding
Content-Transfer-Encoding.
Definition: mime.h:46
dump_param_list
void dump_param_list(const struct ParameterList *pl)
Definition: email.c:222
Context
The "current" mailbox.
Definition: context.h:38
ContentType
ContentType
Content-Type.
Definition: mime.h:29
dump_email
void dump_email(const struct Email *e)
Definition: email.c:132
dump_graphviz_attach_ctx
void dump_graphviz_attach_ctx(struct AttachCtx *actx)
Definition: graphviz.c:1582
dump_addr_list
void dump_addr_list(char *buf, size_t buflen, const struct AddressList *al, const char *name)
Definition: email.c:34
ContentDisposition
ContentDisposition
Content-Disposition values.
Definition: mime.h:60
add_flag
void add_flag(struct Buffer *buf, bool is_set, const char *name)
Definition: graphviz.c:136
show_backtrace
void show_backtrace(void)
Log the program's call stack.
Definition: backtrace.c:39
debug_win_dump
void debug_win_dump(void)
Definition: window.c:88
get_content_encoding
const char * get_content_encoding(enum ContentEncoding enc)
Definition: graphviz.c:96
dump_envelope
void dump_envelope(const struct Envelope *env)
Definition: email.c:67
win_name
const char * win_name(const struct MuttWindow *win)
Definition: common.c:34
lib.h
dump_body
void dump_body(const struct Body *body)
Definition: email.c:235
debug_notify_observer
int debug_notify_observer(struct NotifyCallback *nc)
Definition: notify.c:321
dump_graphviz_email
void dump_graphviz_email(struct Email *e)
Definition: graphviz.c:1420
dump_graphviz
void dump_graphviz(const char *title, struct Context *ctx)
Definition: graphviz.c:937
Email
The envelope/body of an email.
Definition: email.h:37
get_content_disposition
const char * get_content_disposition(enum ContentDisposition disp)
Definition: graphviz.c:119
dump_attach
void dump_attach(const struct AttachPtr *att)
Definition: email.c:317