summaryrefslogtreecommitdiff
path: root/src/feeds.h
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-11-23 13:36:56 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-11-23 13:36:56 +0200
commite509af0fc8eee4b03766ec5c1f4faf6dae7f41b4 (patch)
treee838fb1b243f9ed544c62d5f16fccc235c176507 /src/feeds.h
parentfe46ad8a6af32a52889719a838ad7178605c1d3d (diff)
Added Feeds
Feeds fetches bookmarks with the "subscribed" tag and looks for feed-formatted links. The found links are added to the database of feed entries.
Diffstat (limited to 'src/feeds.h')
-rw-r--r--src/feeds.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/feeds.h b/src/feeds.h
new file mode 100644
index 00000000..c5c3d447
--- /dev/null
+++ b/src/feeds.h
@@ -0,0 +1,40 @@
1/* Copyright 2020 Jaakko Keränen <jaakko.keranen@iki.fi>
2
3Redistribution and use in source and binary forms, with or without
4modification, are permitted provided that the following conditions are met:
5
61. Redistributions of source code must retain the above copyright notice, this
7 list of conditions and the following disclaimer.
82. Redistributions in binary form must reproduce the above copyright notice,
9 this list of conditions and the following disclaimer in the documentation
10 and/or other materials provided with the distribution.
11
12THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
13ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
14WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
15DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
16ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
17(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
18LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
19ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
20(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
21SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
22
23#include <the_Foundation/ptrarray.h>
24#include <the_Foundation/string.h>
25#include <the_Foundation/time.h>
26
27iDeclareType(FeedEntry)
28iDeclareTypeConstruction(FeedEntry)
29
30struct Impl_FeedEntry {
31 iTime timestamp;
32 iString url;
33 iString title;
34 uint32_t bookmarkId; /* note: runtime only, not a persistent ID */
35};
36
37void init_Feeds (const char *saveDir);
38void deinit_Feeds (void);
39
40const iPtrArray * listEntries_Feeds (void);