From: "Rodolfo García Peñas (kix)" <[email protected]>

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) <[email protected]>
---
 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 dc4d9ad..126b51d 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 f8666d1..a9cb1c8 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 11cbded..c087804 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 <WINGs/WUtil.h>
 
diff --git a/src/monitor.h b/src/monitor.h
new file mode 100644
index 0000000..fb9f7f1
--- /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 */
-- 
1.7.10.4


-- 
To unsubscribe, send mail to [email protected].

Reply via email to