summaryrefslogtreecommitdiffstats
path: root/articles.c
diff options
context:
space:
mode:
authorFreeArtMan <dos21h@gmail.com>2014-11-16 11:10:23 +0900
committerFreeArtMan <dos21h@gmail.com>2014-11-16 11:10:23 +0900
commite8574a9621a2cbe50b22aa5aa8114bcebce22b38 (patch)
tree6e77d3872827926ce108f15e312d699fefbbd23a /articles.c
parentc84cc88f0b34d8802390e2a7b6dab7f07ba277d1 (diff)
downloadmicrobbs-e8574a9621a2cbe50b22aa5aa8114bcebce22b38.tar.gz
microbbs-e8574a9621a2cbe50b22aa5aa8114bcebce22b38.zip
Preparation to article list feature. Added debug.h and mmm.h
Diffstat (limited to 'articles.c')
-rw-r--r--articles.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/articles.c b/articles.c
index b3553c0..c071bf1 100644
--- a/articles.c
+++ b/articles.c
@@ -98,3 +98,31 @@ int bbs_article( term_screen *ts, const char *fname )
return ret;
}
+
+int bbs_article_list( term_screen *ts, const char *dir_name )
+{
+ int ret=-1;
+ int max_x=-1, max_y=-1;
+
+ if ( ts->mode == SCREEN_MODE_80x24 )
+ {
+ max_x = 80;
+ max_y = 24;
+ } else
+ {
+ printf("Unknown mode\n");
+ max_x = 80;
+ max_y = 24;
+ }
+
+ bbs_log_article_list( NULL );
+
+ if ( dir_name != NULL )
+ {
+ //should have some bugs be carefull
+
+ ret = 0;
+ }
+
+ return ret;
+}