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

The file cycling.h includes the function prototypes for cycling.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/cycling.c   |    2 +-
 src/cycling.h   |   27 +++++++++++++++++++++++++++
 src/event.c     |    2 +-
 src/funcs.h     |    5 -----
 5 files changed, 30 insertions(+), 7 deletions(-)
 create mode 100644 src/cycling.h

diff --git a/src/Makefile.am b/src/Makefile.am
index 1f019ce..2415080 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -24,6 +24,7 @@ wmaker_SOURCES =      \
        colormap.c \
        colormap.h \
        cycling.c \
+       cycling.h \
        def_pixmaps.h \
        defaults.c \
        defaults.h \
diff --git a/src/cycling.c b/src/cycling.c
index 574e0f4..f050afc 100644
--- a/src/cycling.c
+++ b/src/cycling.c
@@ -34,7 +34,7 @@
 #include "keybind.h"
 #include "actions.h"
 #include "stacking.h"
-#include "funcs.h"
+#include "cycling.h"
 #include "xinerama.h"
 #include "switchpanel.h"
 
diff --git a/src/cycling.h b/src/cycling.h
new file mode 100644
index 0000000..eb8212b
--- /dev/null
+++ b/src/cycling.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 WMCYCLING_H
+#define WMCYCLING_H
+
+void StartWindozeCycle(WWindow *wwin, XEvent *event, Bool next, Bool 
class_only);
+
+#endif /* WMCYCLING_H */
diff --git a/src/event.c b/src/event.c
index 692fd8a..ea130f1 100644
--- a/src/event.c
+++ b/src/event.c
@@ -55,7 +55,7 @@
 #include "actions.h"
 #include "client.h"
 #include "main.h"
-#include "funcs.h"
+#include "cycling.h"
 #include "keybind.h"
 #include "application.h"
 #include "stacking.h"
diff --git a/src/funcs.h b/src/funcs.h
index 2879c98..21c37aa 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);
 
 
-/* ---[ cycling.c ]------------------------------------------------------- */
-
-void StartWindozeCycle(WWindow *wwin, XEvent *event, Bool next, Bool 
class_only);
-
-
 /* ---[ event.c ]--------------------------------------------------------- */
 
 void EventLoop(void);
-- 
1.7.10.4


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

Reply via email to