Expando Node for a Conditional Date. More...
#include "config.h"
#include <assert.h>
#include <ctype.h>
#include <limits.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
#include "mutt/lib.h"
#include "node_conddate.h"
#include "helpers.h"
#include "node.h"
#include "parse.h"
#include "render.h"
Go to the source code of this file.
Functions | |
struct NodeCondDatePrivate * | node_conddate_private_new (int count, char period) |
Create new CondDate private data. | |
void | node_conddate_private_free (void **ptr) |
Free CondDate private data - Implements ExpandoNode::ndata_free() | |
int | node_conddate_render (const struct ExpandoNode *node, const struct ExpandoRenderData *rdata, struct Buffer *buf, int max_cols, void *data, MuttFormatFlags flags) |
Render a CondDate Node - Implements ExpandoNode::render() -. | |
struct ExpandoNode * | node_conddate_new (int count, char period, int did, int uid) |
Create a new CondDate ExpandoNode. | |
struct ExpandoNode * | node_conddate_parse (const char *str, const char **parsed_until, int did, int uid, struct ExpandoParseError *error) |
Parse a CondDate format string - Implements ExpandoDefinition::parse() -. | |
Expando Node for a Conditional Date.
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_conddate.c.
struct NodeCondDatePrivate * node_conddate_private_new | ( | int | count, |
char | period | ||
) |
Create new CondDate private data.
count | Number of 'units' to count |
period | Units, e.g. 'd' Day or 'm' Month |
ptr | New CondDate private data |
Definition at line 50 of file node_conddate.c.
void node_conddate_private_free | ( | void ** | ptr | ) |
Free CondDate private data - Implements ExpandoNode::ndata_free()
ptr | Data to free |
Definition at line 64 of file node_conddate.c.
struct ExpandoNode * node_conddate_new | ( | int | count, |
char | period, | ||
int | did, | ||
int | uid | ||
) |
Create a new CondDate ExpandoNode.
count | Number of 'units' to count |
period | Units, e.g. 'd' Day or 'm' Month |
did | Domain ID |
uid | Unique ID |
ptr | New CondDate ExpandoNode |
Definition at line 132 of file node_conddate.c.