#include "config.h"
#include <errno.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include "mutt/lib.h"
#include "gui/lib.h"
#include "expando.h"
#include "globals.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) |
Filter the text through an external command. | |
int | expando_filter (const struct Expando *exp, const struct ExpandoRenderData *rdata, void *data, MuttFormatFlags flags, int max_cols, 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 51 of file filter.c.
void filter_text | ( | struct Buffer * | buf | ) |
Filter the text through an external command.
[in,out] | buf | Text |
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 89 of file filter.c.
int expando_filter | ( | const struct Expando * | exp, |
const struct ExpandoRenderData * | rdata, | ||
void * | data, | ||
MuttFormatFlags | flags, | ||
int | max_cols, | ||
struct Buffer * | buf | ||
) |
Render an Expando and run the result through a filter.
[in] | exp | Expando containing the expando tree |
[in] | rdata | Expando render data |
[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 |
obj | Number of bytes written to buf and screen columns used |
Definition at line 138 of file filter.c.