Expando Node for an Expando. More...
#include "config.h"#include <limits.h>#include <stdio.h>#include "mutt/lib.h"#include "node_expando.h"#include "color/lib.h"#include "definition.h"#include "format.h"#include "helpers.h"#include "mutt_thread.h"#include "node.h"#include "parse.h"#include "render.h"
Include dependency graph for node_expando.c:Go to the source code of this file.
Functions | |
| struct NodeExpandoPrivate * | node_expando_private_new (void) |
| Create new Expando private data. | |
| void | node_expando_private_free (void **ptr) |
| Free Expando private data - Implements ExpandoNode::ndata_free() | |
| struct ExpandoNode * | node_expando_new (struct ExpandoFormat *fmt, int did, int uid) |
| Create a new Expando ExpandoNode. | |
| void | node_expando_set_color (const struct ExpandoNode *node, int cid) |
| Set the colour for an Expando. | |
| void | node_expando_set_has_tree (const struct ExpandoNode *node, bool has_tree) |
| Set the has_tree flag for an Expando. | |
| struct ExpandoFormat * | parse_format (const char *str, const char **parsed_until, struct ExpandoParseError *err) |
| Parse a format string. | |
| struct ExpandoNode * | parse_short_name (const char *str, const struct ExpandoDefinition *defs, ExpandoParserFlags flags, struct ExpandoFormat *fmt, const char **parsed_until, struct ExpandoParseError *err) |
| Create an expando by its short name. | |
| struct ExpandoNode * | node_expando_parse (const char *str, const struct ExpandoDefinition *defs, ExpandoParserFlags flags, const char **parsed_until, struct ExpandoParseError *err) |
| Parse an Expando format string. | |
| const char * | skip_until_ch (const char *str, char terminator) |
| Search a string for a terminator character. | |
| struct ExpandoNode * | node_expando_parse_enclosure (const char *str, int did, int uid, char terminator, struct ExpandoFormat *fmt, const char **parsed_until, struct ExpandoParseError *err) |
| Parse an enclosed Expando. | |
| void | add_color (struct Buffer *buf, enum ColorId cid) |
| Add a colour code to a buffer. | |
| int | node_expando_render (const struct ExpandoNode *node, const struct ExpandoRenderCallback *erc, struct Buffer *buf, int max_cols, void *data, MuttFormatFlags flags) |
| Render an Expando Node - Implements ExpandoNode::render() -. | |
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 node_expando.c.
| struct NodeExpandoPrivate * node_expando_private_new | ( | void | ) |
Create new Expando private data.
| ptr | New Expando private data |
Definition at line 48 of file node_expando.c.
Here is the caller graph for this function:| void node_expando_private_free | ( | void ** | ptr | ) |
Free Expando private data - Implements ExpandoNode::ndata_free()
| ptr | Data to free |
Definition at line 62 of file node_expando.c.
Here is the caller graph for this function:| struct ExpandoNode * node_expando_new | ( | struct ExpandoFormat * | fmt, |
| int | did, | ||
| int | uid ) |
Create a new Expando ExpandoNode.
| fmt | Formatting data |
| did | Domain ID |
| uid | Unique ID |
| ptr | New Expando ExpandoNode |
Definition at line 77 of file node_expando.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void node_expando_set_color | ( | const struct ExpandoNode * | node, |
| int | cid ) |
Set the colour for an Expando.
| node | Node to alter |
| cid | Colour |
Definition at line 99 of file node_expando.c.
Here is the caller graph for this function:| void node_expando_set_has_tree | ( | const struct ExpandoNode * | node, |
| bool | has_tree ) |
Set the has_tree flag for an Expando.
| node | Node to alter |
| has_tree | Flag to set |
Definition at line 114 of file node_expando.c.
Here is the caller graph for this function:| struct ExpandoFormat * parse_format | ( | const char * | str, |
| const char ** | parsed_until, | ||
| struct ExpandoParseError * | err ) |
Parse a format string.
| [in] | str | String to parse |
| [out] | parsed_until | First character after the parsed string |
| [out] | err | Buffer for errors |
| ptr | New ExpandoFormat object |
Parse a printf()-style format, e.g. '-15.20x'
_ (underscore) means lowercase the string Definition at line 135 of file node_expando.c.
Here is the call graph for this function:
Here is the caller graph for this function:| struct ExpandoNode * parse_short_name | ( | const char * | str, |
| const struct ExpandoDefinition * | defs, | ||
| ExpandoParserFlags | flags, | ||
| struct ExpandoFormat * | fmt, | ||
| const char ** | parsed_until, | ||
| struct ExpandoParseError * | err ) |
Create an expando by its short name.
| [in] | str | String to parse |
| [in] | defs | Expando definitions |
| [in] | flags | Flag for conditional expandos |
| [in] | fmt | Formatting info |
| [out] | parsed_until | First character after parsed string |
| [out] | err | Buffer for errors |
| ptr | New ExpandoNode |
Definition at line 244 of file node_expando.c.
Here is the call graph for this function:
Here is the caller graph for this function:| struct ExpandoNode * node_expando_parse | ( | const char * | str, |
| const struct ExpandoDefinition * | defs, | ||
| ExpandoParserFlags | flags, | ||
| const char ** | parsed_until, | ||
| struct ExpandoParseError * | err ) |
Parse an Expando format string.
| [in] | str | String to parse |
| [in] | defs | Expando definitions |
| [in] | flags | Flag for conditional expandos |
| [out] | parsed_until | First character after parsed string |
| [out] | err | Buffer for errors |
| ptr | New ExpandoNode |
Definition at line 283 of file node_expando.c.
Here is the call graph for this function:
Here is the caller graph for this function:| const char * skip_until_ch | ( | const char * | str, |
| char | terminator ) |
Search a string for a terminator character.
| str | Start of string |
| terminator | Character to find |
| ptr | Position of terminator character, or end-of-string |
Definition at line 316 of file node_expando.c.
Here is the caller graph for this function:| struct ExpandoNode * node_expando_parse_enclosure | ( | const char * | str, |
| int | did, | ||
| int | uid, | ||
| char | terminator, | ||
| struct ExpandoFormat * | fmt, | ||
| const char ** | parsed_until, | ||
| struct ExpandoParseError * | err ) |
Parse an enclosed Expando.
| [in] | str | String to parse |
| [in] | did | Domain ID |
| [in] | uid | Unique ID |
| [in] | terminator | Terminating character |
| [in] | fmt | Formatting info |
| [out] | parsed_until | First character after the parsed string |
| [out] | err | Buffer for errors |
| ptr | New ExpandoNode |
Definition at line 348 of file node_expando.c.
Here is the call graph for this function:
Here is the caller graph for this function:Add a colour code to a buffer.
| buf | Buffer for colour code |
| cid | Colour |
Definition at line 392 of file node_expando.c.
Here is the call graph for this function:
Here is the caller graph for this function: