Convenience wrapper for the debug headers. More...
#include "config.h"#include <stdbool.h>#include <stddef.h>#include <time.h>#include "mutt/lib.h"#include "email/lib.h"#include "core/lib.h"#include "expando/lib.h"#include "menu/lib.h"
Include dependency graph for lib.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Functions | |
| void | add_flag (struct Buffer *buf, bool is_set, const char *name) |
| Add a flag name to a buffer if set. | |
| void | show_backtrace (void) |
| Log the program's call stack. | |
| char | body_name (const struct Body *b) |
| Get the first character of a body. | |
| void | dump_addr_list (char *buf, size_t buflen, const struct AddressList *al, const char *name) |
| Dump an address list. | |
| void | dump_attach (const struct AttachPtr *att) |
| Dump an attachment. | |
| void | dump_body (const struct Body *body) |
| Dump a message body. | |
| void | dump_body_next (struct Buffer *buf, const struct Body *b) |
| Dump the body tree structure. | |
| void | dump_body_one_line (const struct Body *b) |
| Dump body layout as a one-line summary. | |
| void | dump_email (const struct Email *e) |
| Dump an email message. | |
| void | dump_envelope (const struct Envelope *env) |
| Dump an envelope. | |
| void | dump_list_head (const struct ListHead *list, const char *name) |
| Dump a list of strings. | |
| void | dump_param_list (const struct ParameterList *pl) |
| Dump a parameter list. | |
| const char * | name_expando_domain (enum ExpandoDomain did) |
| Get the name of an expando domain. | |
| const char * | name_expando_node_type (enum ExpandoNodeType type) |
| Get the name of an expando node type. | |
| const char * | name_expando_pad_type (enum ExpandoPadType type) |
| Get the name of an expando padding type. | |
| const char * | name_expando_uid (enum ExpandoDomain did, int uid) |
| Get the name of an email expando field. | |
| const char * | name_expando_uid_alias (int uid) |
| Get the name of an alias expando field. | |
| const char * | name_expando_uid_all (int uid) |
| const char * | name_expando_uid_attach (int uid) |
| const char * | name_expando_uid_autocrypt (int uid) |
| const char * | name_expando_uid_body (int uid) |
| const char * | name_expando_uid_compose (int uid) |
| const char * | name_expando_uid_compress (int uid) |
| const char * | name_expando_uid_email (int uid) |
| const char * | name_expando_uid_envelope (int uid) |
| const char * | name_expando_uid_folder (int uid) |
| const char * | name_expando_uid_global (int uid) |
| const char * | name_expando_uid_history (int uid) |
| const char * | name_expando_uid_index (int uid) |
| const char * | name_expando_uid_mailbox (int uid) |
| const char * | name_expando_uid_menu (int uid) |
| const char * | name_expando_uid_nntp (int uid) |
| const char * | name_expando_uid_pattern (int uid) |
| const char * | name_expando_uid_pgp (int uid) |
| const char * | name_expando_uid_pgp_cmd (int uid) |
| const char * | name_expando_uid_pgp_key (int uid) |
| const char * | name_expando_uid_pgp_key_gpgme (int uid) |
| const char * | name_expando_uid_sidebar (int uid) |
| const char * | name_expando_uid_smime_cmd (int uid) |
| const char * | name_format_justify (enum FormatJustify just) |
| void | dump_graphviz (const char *title, const struct MailboxView *mv) |
| Dump NeoMutt data structures to GraphViz format. | |
| void | dump_graphviz_attach_ctx (const struct AttachCtx *actx) |
| void | dump_graphviz_body (const struct Body *b) |
| void | dump_graphviz_email (const struct Email *e, const char *title) |
| void | dump_graphviz_expando_node (const struct ExpandoNode *node) |
| void | dump_menu_binds (bool brief) |
| Dump all menu bindings. | |
| void | dump_menu_funcs (bool brief) |
| Dump all menu functions. | |
| int | log_disp_debug (time_t stamp, const char *file, int line, const char *function, enum LogLevel level, const char *format,...) |
| Display a log line on screen - Implements log_dispatcher_t -. | |
| const char * | name_color_id (int cid) |
| Get the name of a color ID. | |
| const char * | name_command_id (enum CommandId id) |
| Get the name of a Command id. | |
| const char * | name_content_disposition (enum ContentDisposition disp) |
| Get the name of a content disposition. | |
| const char * | name_content_encoding (enum ContentEncoding enc) |
| Get the name of a content encoding. | |
| const char * | name_content_type (enum ContentType type) |
| Get the name of a content type. | |
| const char * | name_mailbox_type (enum MailboxType type) |
| Get the name of a mailbox type. | |
| const char * | name_menu_type (enum MenuType mt) |
| Get the name of a menu type. | |
| const char * | name_notify_config (int id) |
| Get the name of a config notification type. | |
| const char * | name_notify_global (int id) |
| Get the name of a global notification type. | |
| const char * | name_notify_mailbox (int id) |
| Get the name of a mailbox notification type. | |
| const char * | name_notify_mview (int id) |
| Get the name of a mailbox view notification type. | |
| const char * | name_notify_type (enum NotifyType type) |
| Get the name of a notification type. | |
| const char * | name_window_size (const struct MuttWindow *win) |
| Get the name of a window size. | |
| const char * | name_window_type (const struct MuttWindow *win) |
| Get the name of a window type. | |
| int | debug_all_observer (struct NotifyCallback *nc) |
| Debug observer for all notifications. | |
| static void | dump_pager (struct PagerPrivateData *priv) |
| void | debug_win_dump (void) |
| Dump all windows to debug output. | |
Variables | |
| bool | DebugLogColor |
| Output ANSI colours. | |
| bool | DebugLogLevel |
| Prefix log level, e.g. [E]. | |
| bool | DebugLogTimestamp |
| Show the timestamp. | |
Convenience wrapper for the debug headers.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file lib.h.
| void add_flag | ( | struct Buffer * | buf, |
| bool | is_set, | ||
| const char * | name ) |
Add a flag name to a buffer if set.
| buf | Buffer to append to |
| is_set | True if flag is set |
| name | Flag name |
Definition at line 40 of file common.c.
Here is the call graph for this function:| void show_backtrace | ( | void | ) |
Log the program's call stack.
Definition at line 40 of file backtrace.c.
Here is the call graph for this function:
Here is the caller graph for this function:| char body_name | ( | const struct Body * | b | ) |
Get the first character of a body.
| b | Body to examine |
| char | Character from description, filename or indicator |
Definition at line 417 of file email.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void dump_addr_list | ( | char * | buf, |
| size_t | buflen, | ||
| const struct AddressList * | al, | ||
| const char * | name ) |
Dump an address list.
Definition at line 47 of file email.c.
Here is the call graph for this function:| void dump_attach | ( | const struct AttachPtr * | att | ) |
Dump an attachment.
| att | Attachment to dump |
Helper to add an attach flag to debug output
Definition at line 383 of file email.c.
Here is the call graph for this function:| void dump_body | ( | const struct Body * | body | ) |
Dump a message body.
| body | Body to dump |
Helper to add a body flag to debug output
Helper to print optional string fields in body
Definition at line 294 of file email.c.
Here is the call graph for this function:
Here is the caller graph for this function:Dump the body tree structure.
Definition at line 445 of file email.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void dump_body_one_line | ( | const struct Body * | b | ) |
Dump body layout as a one-line summary.
| b | Body to summarize |
Definition at line 465 of file email.c.
Here is the call graph for this function:| void dump_email | ( | const struct Email * | e | ) |
Dump an email message.
| e | Email to dump |
Helper to add an email flag to debug output
Helper to add a security flag to debug output
Definition at line 170 of file email.c.
Here is the call graph for this function:| void dump_envelope | ( | const struct Envelope * | env | ) |
Dump an envelope.
| env | Envelope to dump |
Helper to add a flag to debug output
Helper to dump an address list with debug output
Helper to print optional string fields
Definition at line 93 of file email.c.
Here is the call graph for this function:| void dump_list_head | ( | const struct ListHead * | list, |
| const char * | name ) |
Dump a list of strings.
| list | List to dump |
| name | Name of the list |
Definition at line 68 of file email.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void dump_param_list | ( | const struct ParameterList * | pl | ) |
Dump a parameter list.
| pl | Parameter list to dump |
Definition at line 267 of file email.c.
Here is the caller graph for this function:| const char * name_expando_domain | ( | enum ExpandoDomain | did | ) |
Get the name of an expando domain.
| did | Domain ID enum |
| str | Name of the domain |
Definition at line 106 of file names_expando.c.
Here is the caller graph for this function:| const char * name_expando_node_type | ( | enum ExpandoNodeType | type | ) |
Get the name of an expando node type.
| type | Expando node type enum |
| str | Name of the node type |
Definition at line 70 of file names_expando.c.
| const char * name_expando_pad_type | ( | enum ExpandoPadType | type | ) |
Get the name of an expando padding type.
| type | Padding type enum |
| str | Name of the padding type |
Definition at line 90 of file names_expando.c.
Here is the caller graph for this function:| const char * name_expando_uid | ( | enum ExpandoDomain | did, |
| int | uid ) |
Get the name of an email expando field.
| did | Domain ID |
| uid | Unique ID |
| str | Name of the field |
Definition at line 528 of file names_expando.c.
Here is the call graph for this function:
Here is the caller graph for this function:| const char * name_expando_uid_alias | ( | int | uid | ) |
Get the name of an alias expando field.
| uid | Unique ID |
| str | Name of the field |
Definition at line 140 of file names_expando.c.
Here is the caller graph for this function:| const char * name_expando_uid_all | ( | int | uid | ) |
| const char * name_expando_uid_attach | ( | int | uid | ) |
Definition at line 157 of file names_expando.c.
Here is the caller graph for this function:| const char * name_expando_uid_autocrypt | ( | int | uid | ) |
Definition at line 169 of file names_expando.c.
Here is the caller graph for this function:| const char * name_expando_uid_body | ( | int | uid | ) |
Definition at line 183 of file names_expando.c.
Here is the caller graph for this function:| const char * name_expando_uid_compose | ( | int | uid | ) |
Definition at line 205 of file names_expando.c.
Here is the caller graph for this function:| const char * name_expando_uid_compress | ( | int | uid | ) |
Definition at line 215 of file names_expando.c.
Here is the caller graph for this function:| const char * name_expando_uid_email | ( | int | uid | ) |
Definition at line 225 of file names_expando.c.
Here is the caller graph for this function:| const char * name_expando_uid_envelope | ( | int | uid | ) |
Definition at line 259 of file names_expando.c.
Here is the caller graph for this function:| const char * name_expando_uid_folder | ( | int | uid | ) |
Definition at line 292 of file names_expando.c.
Here is the caller graph for this function:| const char * name_expando_uid_global | ( | int | uid | ) |
Definition at line 321 of file names_expando.c.
Here is the caller graph for this function:| const char * name_expando_uid_history | ( | int | uid | ) |
Definition at line 338 of file names_expando.c.
Here is the caller graph for this function:| const char * name_expando_uid_index | ( | int | uid | ) |
Definition at line 348 of file names_expando.c.
Here is the caller graph for this function:| const char * name_expando_uid_mailbox | ( | int | uid | ) |
Definition at line 373 of file names_expando.c.
Here is the caller graph for this function:| const char * name_expando_uid_menu | ( | int | uid | ) |
Definition at line 384 of file names_expando.c.
Here is the caller graph for this function:| const char * name_expando_uid_nntp | ( | int | uid | ) |
Definition at line 412 of file names_expando.c.
Here is the caller graph for this function:| const char * name_expando_uid_pattern | ( | int | uid | ) |
Definition at line 426 of file names_expando.c.
Here is the caller graph for this function:| const char * name_expando_uid_pgp | ( | int | uid | ) |
Definition at line 437 of file names_expando.c.
Here is the caller graph for this function:| const char * name_expando_uid_pgp_cmd | ( | int | uid | ) |
Definition at line 448 of file names_expando.c.
Here is the caller graph for this function:| const char * name_expando_uid_pgp_key | ( | int | uid | ) |
Definition at line 461 of file names_expando.c.
Here is the caller graph for this function:| const char * name_expando_uid_pgp_key_gpgme | ( | int | uid | ) |
| const char * name_expando_uid_sidebar | ( | int | uid | ) |
Definition at line 483 of file names_expando.c.
Here is the caller graph for this function:| const char * name_expando_uid_smime_cmd | ( | int | uid | ) |
Definition at line 506 of file names_expando.c.
Here is the caller graph for this function:| const char * name_format_justify | ( | enum FormatJustify | just | ) |
Definition at line 584 of file names_expando.c.
Here is the caller graph for this function:| void dump_graphviz | ( | const char * | title, |
| const struct MailboxView * | mv ) |
Dump NeoMutt data structures to GraphViz format.
| title | Optional title for the output file |
| mv | Mailbox view to dump |
Definition at line 1072 of file graphviz.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void dump_graphviz_attach_ctx | ( | const struct AttachCtx * | actx | ) |
Definition at line 1776 of file graphviz.c.
Here is the call graph for this function:| void dump_graphviz_body | ( | const struct Body * | b | ) |
Definition at line 1586 of file graphviz.c.
Here is the call graph for this function:| void dump_graphviz_email | ( | const struct Email * | e, |
| const char * | title ) |
Definition at line 1608 of file graphviz.c.
Here is the call graph for this function:| void dump_graphviz_expando_node | ( | const struct ExpandoNode * | node | ) |
Definition at line 2217 of file graphviz.c.
Here is the call graph for this function:| void dump_menu_binds | ( | bool | brief | ) |
Dump all menu bindings.
| brief | True for brief output |
Definition at line 260 of file keymap.c.
Here is the call graph for this function:| void dump_menu_funcs | ( | bool | brief | ) |
Dump all menu functions.
| brief | True for brief output |
Definition at line 246 of file keymap.c.
Here is the call graph for this function:| const char * name_color_id | ( | int | cid | ) |
Get the name of a color ID.
| cid | Color ID |
| str | Name of the color |
Definition at line 435 of file names.c.
Here is the caller graph for this function:| const char * name_command_id | ( | enum CommandId | id | ) |
| const char * name_content_disposition | ( | enum ContentDisposition | disp | ) |
Get the name of a content disposition.
| disp | Content disposition enum |
| str | Name of the content disposition |
Definition at line 197 of file names.c.
Here is the caller graph for this function:| const char * name_content_encoding | ( | enum ContentEncoding | enc | ) |
Get the name of a content encoding.
| enc | Content encoding enum |
| str | Name of the content encoding |
Definition at line 177 of file names.c.
Here is the caller graph for this function:| const char * name_content_type | ( | enum ContentType | type | ) |
Get the name of a content type.
| type | Content type enum |
| str | Name of the content type |
Definition at line 154 of file names.c.
Here is the caller graph for this function:| const char * name_mailbox_type | ( | enum MailboxType | type | ) |
Get the name of a mailbox type.
| type | Mailbox type enum |
| str | Name of the mailbox type |
Definition at line 250 of file names.c.
Here is the caller graph for this function:| const char * name_menu_type | ( | enum MenuType | mt | ) |
Get the name of a menu type.
| mt | Menu type enum |
| str | Name of the menu type |
Definition at line 275 of file names.c.
Here is the caller graph for this function:| const char * name_notify_config | ( | int | id | ) |
Get the name of a config notification type.
| id | Notification subtype |
| str | Name of the notification |
Definition at line 321 of file names.c.
Here is the caller graph for this function:| const char * name_notify_global | ( | int | id | ) |
Get the name of a global notification type.
| id | Notification subtype |
| str | Name of the notification |
Definition at line 305 of file names.c.
Here is the caller graph for this function:| const char * name_notify_mailbox | ( | int | id | ) |
Get the name of a mailbox notification type.
| id | Notification subtype |
| str | Name of the notification |
Definition at line 337 of file names.c.
Here is the caller graph for this function:| const char * name_notify_mview | ( | int | id | ) |
Get the name of a mailbox view notification type.
| id | Notification subtype |
| str | Name of the notification |
Definition at line 358 of file names.c.
Here is the caller graph for this function:| const char * name_notify_type | ( | enum NotifyType | type | ) |
Get the name of a notification type.
| type | Notification type enum |
| str | Name of the notification type |
Definition at line 214 of file names.c.
Here is the caller graph for this function:| const char * name_window_size | ( | const struct MuttWindow * | win | ) |
Get the name of a window size.
| win | Window to examine |
| str | Name of the window size |
Definition at line 416 of file names.c.
Here is the caller graph for this function:| const char * name_window_type | ( | const struct MuttWindow * | win | ) |
Get the name of a window type.
| win | Window to examine |
| str | Name of the window type |
Definition at line 374 of file names.c.
| int debug_all_observer | ( | struct NotifyCallback * | nc | ) |
Debug observer for all notifications.
| nc | Notification callback |
| 0 | Always |
Definition at line 237 of file notify.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinestatic |
| void debug_win_dump | ( | void | ) |
Dump all windows to debug output.
Definition at line 114 of file window.c.
Here is the call graph for this function:
Here is the caller graph for this function: