#include <common/nstring.h>
Go to the source code of this file.
Enumerations | |
enum | rss_feed_attribute { rss_feed_description, rss_feed_title, rss_feed_language } |
Functions | |
nstring | rss_feed_filename (project_ty *pp, const nstring &state) |
nstring | rss_feed_attribute (project_ty *pp, const nstring &filename, rss_feed_attribute attribute) |
nstring | rss_get_project_url (project_ty *pp) |
void | rss_add_item_by_change (project_ty *pp, change::pointer cp) |
void | rss_add_item (const nstring &filename, project_ty *pp, change::pointer cp) |
Variables | |
const nstring | rss_script_name_placeholder |
enum rss_feed_attribute |
void rss_add_item | ( | const nstring & | filename, | |
project_ty * | pp, | |||
change::pointer | cp | |||
) |
Add an RSS item to the specified RSS feed file.
filename | The filename to add the new item to. | |
pp | The project involved. | |
cp | The changeset to which the new item relates. |
void rss_add_item_by_change | ( | project_ty * | pp, | |
change::pointer | cp | |||
) |
nstring rss_feed_attribute | ( | project_ty * | pp, | |
const nstring & | filename, | |||
rss_feed_attribute | attribute | |||
) |
Find the RSS Channel attribute for an RSS feed file.
This function searches the project-specific attributes for an entry of the form:
rss:feed<attribute>-<filename> = "<value>";The value corresponding to the specified filename is returned. If an appropriate entry is not found, 0 is returned.
pp | A pointer to the project to use. This is used to find the project-specific attributes. | |
filename | The RSS feed filename for which the attribute is to be located. | |
attribute | The attribute to look for. |
nstring rss_feed_filename | ( | project_ty * | pp, | |
const nstring & | state | |||
) |
Find the filename for an RSS feed.
This function searches the project-specific attributes for entries of the form:
rss:feedfilename-<filename> = "<state>";When an entry with a matching state is found, the filename is returned. Available states are:
awaiting_development being_developed awaiting_review being_reviewed awaiting_integration being_integrated completed
pp | A pointer to the project to use. This is used to find the project-specific attributes. | |
state | A string containing one of the above states. |
nstring rss_get_project_url | ( | project_ty * | pp | ) |
Placeholder used in feed files. When the feed is served up by aeget, the placeholder is replaced with the http script name.