/* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "config.h"
#include <libs/fvwmlib.h>
/*************************************************************************
*
* Subroutine Prototypes
*
*************************************************************************/
void Loop(const int *fd);
void DeadPipe(int nonsense) __attribute__((noreturn));
void process_message(unsigned long type, const unsigned long *body);
void list_old_configure(const unsigned long *body);
void list_new_page(const unsigned long *body);
void list_new_desk(const unsigned long *body);
void list_focus(const unsigned long *body);
void list_winid(const unsigned long *body);
void list_unknown(const unsigned long *body);
void list_icon(const unsigned long *body);
void list_window_name(const unsigned long *body);
void list_restack(const unsigned long *body);
void list_error(const unsigned long *body);
void list_configure(const unsigned long *body);
#ifdef HAVE_WAITPID
# define ReapChildrenPid(pid) waitpid(pid, NULL, WNOHANG)
#elif HAVE_WAIT4
# define ReapChildrenPid(pid) wait4(pid, NULL, WNOHANG, NULL)
#else
# error One of waitpid or wait4 is needed.
#endif
#if HAVE_SETVBUF
# if SETVBUF_REVERSED
# define setvbuf(stream,buf,mode,size) setvbuf(stream,mode,buf,size)
# endif
#else
# define setvbuf(a,b,c,d) setlinebuf(a)
#endif
syntax highlighted by Code2HTML, v. 0.9.1