/[james]/sargasso2/sargasso.c
ViewVC logotype

Diff of /sargasso2/sargasso.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 80 by james, Sat Sep 30 21:35:19 2006 UTC revision 81 by james, Sun Nov 26 16:57:32 2006 UTC
# Line 10  Line 10 
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>
# Line 26  Line 27 
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    
# Line 140  int main(int argc, char *argv[]) Line 142  int main(int argc, char *argv[])
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]);

Legend:
Removed from v.80  
changed lines
  Added in v.81

  ViewVC Help
Powered by ViewVC 1.1.26