Go to the source code of this file.
Data Structures | |
| struct | Expando |
| Parsed Expando trees. More... | |
Functions | |
| void | expando_free (struct Expando **ptr) |
| Free an Expando object. | |
| struct Expando * | expando_new (const char *format) |
| Create an Expando from a string. | |
| bool | expando_equal (const struct Expando *a, const struct Expando *b) |
| Compare two expandos. | |
| const struct ExpandoNode * | expando_find_node (const struct Expando *exp, int did, int uid) |
| Find a Node in an Expando tree. | |
| struct Expando * | expando_parse (const char *str, const struct ExpandoDefinition *defs, struct Buffer *err) |
| Parse an Expando string. | |
| int | expando_render (const struct Expando *exp, const struct ExpandoRenderCallback *erc, void *data, MuttFormatFlags flags, int max_cols, struct Buffer *buf) |
| Render an Expando + data into a string. | |
Parsed Expando.
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 expando.h.
| void expando_free | ( | struct Expando ** | ptr | ) |
Free an Expando object.
| [out] | ptr | Expando to free |
Definition at line 61 of file expando.c.
| struct Expando * expando_new | ( | const char * | format | ) |
Create an Expando from a string.
| format | Format string to parse |
| ptr | New Expando object |
Definition at line 49 of file expando.c.
Compare two expandos.
| true | They are identical |
Definition at line 180 of file expando.c.
| const struct ExpandoNode * expando_find_node | ( | const struct Expando * | exp, |
| int | did, | ||
| int | uid ) |
Find a Node in an Expando tree.
| exp | Expando to search |
| did | Domain ID |
| uid | Unique ID |
| ptr | Matching Node |
| NULL | No matching Node |
Definition at line 109 of file expando.c.
| struct Expando * expando_parse | ( | const char * | str, |
| const struct ExpandoDefinition * | defs, | ||
| struct Buffer * | err ) |
Parse an Expando string.
| ptr | New Expando |
Definition at line 124 of file expando.c.
| int expando_render | ( | const struct Expando * | exp, |
| const struct ExpandoRenderCallback * | erc, | ||
| void * | data, | ||
| MuttFormatFlags | flags, | ||
| int | max_cols, | ||
| struct Buffer * | buf ) |
Render an Expando + data into a string.
| [in] | exp | Expando containing the expando tree |
| [in] | erc | Expando render callback functions |
| [in] | data | Callback data |
| [in] | flags | Callback flags |
| [in] | max_cols | Number of screen columns (-1 means unlimited) |
| [out] | buf | Buffer in which to save string |
| num | Number of bytes written to buf and screen columns used |
Definition at line 161 of file expando.c.