aboutsummaryrefslogblamecommitdiff
path: root/include/post.h
blob: 82c4ee5c044481c8cbe83b4abbd04d80d954c097 (plain) (tree)
























                                                                               
#ifndef POST_H
#define POST_H

/*
 * Represents a single syndicated post entry as received from a remote RSS feed
 */
typedef struct post_item_t {
  char* title;
  char* description;
  char* url;
} post_item_t;

/*
 * Frees the resources allocated for each of the fields in post_item_t
 *
 * Note that this WILL NOT free the provided pointer itself, only its
 * constituent parts
 */
void free_post_item(post_item_t* item);

#ifndef RSSMAIL_POST_MAX_FIELD_LENGTH
#define RSSMAIL_POST_MAX_FIELD_LENGTH 2048
#endif

#endif