From 20a695f70f70f0ef3c7bc002c73ed07376a1af6b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rodolfo=20Garc=C3=ADa=20Pe=C3=B1as=20=28kix=29?= Date: Wed, 15 May 2013 13:07:54 +0200 Subject: [PATCH] New header file monitor.h MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The file monitor.h includes the function prototypes for monitor.c. The prototypes included were moved from funcs.h. Signed-off-by: Rodolfo García Peñas (kix) --- src/Makefile.am | 1 + src/funcs.h | 5 ----- src/main.c | 1 + src/monitor.h | 27 +++++++++++++++++++++++++++ 4 files changed, 29 insertions(+), 5 deletions(-) create mode 100644 src/monitor.h diff --git a/src/Makefile.am b/src/Makefile.am index dc4d9ad7..126b51dc 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -52,6 +52,7 @@ wmaker_SOURCES = \ misc.c \ misc.h \ monitor.c \ + monitor.h \ motif.c \ motif.h \ moveres.c \ diff --git a/src/funcs.h b/src/funcs.h index f8666d16..a9cb1c8a 100644 --- a/src/funcs.h +++ b/src/funcs.h @@ -32,11 +32,6 @@ typedef void (WCallBack)(void *cdata); typedef void (WDeathHandler)(pid_t pid, unsigned int status, void *cdata); -/* ---[ monitor.c ]------------------------------------------------------- */ - -int MonitorLoop(int argc, char **argv); - - /* ---[ osdep_*.c ]------------------------------------------------------- */ Bool GetCommandForPid(int pid, char ***argv, int *argc); diff --git a/src/main.c b/src/main.c index 11cbded1..c0878040 100644 --- a/src/main.c +++ b/src/main.c @@ -55,6 +55,7 @@ #include "shutdown.h" #include "dialog.h" #include "main.h" +#include "monitor.h" #include diff --git a/src/monitor.h b/src/monitor.h new file mode 100644 index 00000000..fb9f7f14 --- /dev/null +++ b/src/monitor.h @@ -0,0 +1,27 @@ +/* + * Window Maker window manager + * + * Copyright (c) 1997-2003 Alfredo K. Kojima + * Copyright (c) 2013 Window Maker Team + * + * 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., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ + +#ifndef WMMONITOR_H +#define WMMONITOR_H + +int MonitorLoop(int argc, char **argv); + +#endif /* WMMONITOR_H */ -- 2.11.4.GIT