/** \file sdl_gui.c SDL-based interface for paraslash */
+#include <sys/types.h>
+#include <dirent.h>
+
#include "para.h"
-#include "string.h"
+#include "gui_common.h"
#include "fd.h"
* Check if buf is a known status line. If so call do_update and return 1.
* Return 0 otherwise.
*/
-void update_status(char *buf)
+int update_status(char *buf, __a_unused void *data)
{
int i;
i = stat_line_valid(buf);
if (i < 0)
- return;
+ return 1;
//free(stat_items[i].content);
stat_items[i].content = para_strdup(buf +
strlen(status_item_list[i]) + 1);
do_update(i);
+ return 1;
}
/*