+/*
+ * Copyright (C) 2006-2008 Andre Noll <maan@systemlinux.org>
+ *
+ * Licensed under the GPL v2. For licencing details see COPYING.
+ */
+
+/** \file gui_common.c Functions used by the guis of paraslash. */
+
+
+#include <sys/types.h>
+#include <dirent.h>
+
#include "para.h"
#include "string.h"
#include "fd.h"
-extern const char *status_item_list[NUM_STAT_ITEMS];
-
int para_open_audiod_pipe(char *cmd)
{
int fds[3] = {0, 1, 0};
int ret = para_exec_cmdline_pid(&pid, cmd, fds);
if (ret < 0)
return ret;
- ret = mark_fd_nonblock(fds[1]);
+ ret = mark_fd_nonblocking(fds[1]);
if (ret > 0)
return fds[1];
close(fds[1]);