#include "config.h"#include <errno.h>#include <stdbool.h>#include <stdio.h>#include <string.h>#include <sys/types.h>#include "mutt/lib.h"#include "gui/lib.h"#include "expando.h"#include "node.h"#include "render.h"Go to the source code of this file.
Functions | |
| bool | check_for_pipe (struct ExpandoNode *root) |
| Should the Expando be piped to an external command? | |
| void | filter_text (struct Buffer *buf, char **env_list) |
| Filter the text through an external command. | |
| int | expando_filter (const struct Expando *exp, const struct ExpandoRenderCallback *erc, void *data, MuttFormatFlags flags, int max_cols, char **env_list, struct Buffer *buf) |
| Render an Expando and run the result through a filter. | |
Expando filtering.
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 filter.c.
| bool check_for_pipe | ( | struct ExpandoNode * | root | ) |
Should the Expando be piped to an external command?
| root | Root Node |
| true | Yes, pipe it |
Definition at line 49 of file filter.c.
| void filter_text | ( | struct Buffer * | buf, |
| char ** | env_list ) |
Filter the text through an external command.
| [in,out] | buf | Text |
| [in] | env_list | Environment |
The text is passed unchanged to the shell. The first line of any output (minus the newline) is stored back in buf.
Definition at line 88 of file filter.c.
| int expando_filter | ( | const struct Expando * | exp, |
| const struct ExpandoRenderCallback * | erc, | ||
| void * | data, | ||
| MuttFormatFlags | flags, | ||
| int | max_cols, | ||
| char ** | env_list, | ||
| struct Buffer * | buf ) |
Render an Expando and run the result through a filter.
| [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) |
| [in] | env_list | Environment to pass to filter |
| [out] | buf | Buffer in which to save string |
| obj | Number of bytes written to buf and screen columns used |
Definition at line 139 of file filter.c.