10 |
#include <stdio.h> |
#include <stdio.h> |
11 |
#include <string.h> |
#include <string.h> |
12 |
#include <sys/stat.h> |
#include <sys/stat.h> |
13 |
|
#include <sys/types.h> |
14 |
#include <oslib/colourtrans.h> |
#include <oslib/colourtrans.h> |
15 |
#include <oslib/osfile.h> |
#include <oslib/osfile.h> |
16 |
#include <oslib/uri.h> |
#include <oslib/uri.h> |
27 |
#define FEEDS_WRITE "<Choices$Write>.Sargasso.Feeds" |
#define FEEDS_WRITE "<Choices$Write>.Sargasso.Feeds" |
28 |
#define CHOICES_READ "Choices:Sargasso.Choices" |
#define CHOICES_READ "Choices:Sargasso.Choices" |
29 |
#define CHOICES_WRITE "<Choices$Write>.Sargasso.Choices" |
#define CHOICES_WRITE "<Choices$Write>.Sargasso.Choices" |
30 |
|
#define WRITE_DIR "<Choices$Write>.Sargasso" |
31 |
|
|
32 |
typedef void (*click_callback)(unsigned int i); |
typedef void (*click_callback)(unsigned int i); |
33 |
|
|
142 |
if (stat(FEEDS_READ, &s)) { |
if (stat(FEEDS_READ, &s)) { |
143 |
warn("Welcome to Sargasso! A selection of feeds have been " |
warn("Welcome to Sargasso! A selection of feeds have been " |
144 |
"added. To add more feeds, use the main menu."); |
"added. To add more feeds, use the main menu."); |
145 |
|
mkdir(WRITE_DIR, S_IRWXU); |
146 |
for (unsigned int i = 0; i != sizeof default_feeds / |
for (unsigned int i = 0; i != sizeof default_feeds / |
147 |
sizeof default_feeds[0]; i++) |
sizeof default_feeds[0]; i++) |
148 |
feed_add(default_feeds[i]); |
feed_add(default_feeds[i]); |