mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 12:28:22 +01:00
funcs.h removed
The file funcs.h is removed. A new file osdep.h is created to hold the definition for all osdep_*c files. The files .c has been adjusted to include the right header files, removing funcs.h, including osdep.h. Signed-off-by: Rodolfo García Peñas (kix) <kix@kix.es>
This commit is contained in:
committed by
Carlos R. Mafra
parent
ed80a9bf5c
commit
5455a585dc
@@ -41,7 +41,7 @@ wmaker_SOURCES = \
|
|||||||
framewin.h \
|
framewin.h \
|
||||||
geomview.c \
|
geomview.c \
|
||||||
geomview.h \
|
geomview.h \
|
||||||
funcs.h \
|
osdep.h \
|
||||||
icon.c \
|
icon.c \
|
||||||
icon.h \
|
icon.h \
|
||||||
keybind.h \
|
keybind.h \
|
||||||
|
|||||||
@@ -35,6 +35,7 @@
|
|||||||
#include "properties.h"
|
#include "properties.h"
|
||||||
#include "workspace.h"
|
#include "workspace.h"
|
||||||
#include "dock.h"
|
#include "dock.h"
|
||||||
|
#include "defaults.h"
|
||||||
|
|
||||||
/******** Global variables ********/
|
/******** Global variables ********/
|
||||||
|
|
||||||
|
|||||||
@@ -33,7 +33,6 @@
|
|||||||
#include "WindowMaker.h"
|
#include "WindowMaker.h"
|
||||||
#include "menu.h"
|
#include "menu.h"
|
||||||
#include "actions.h"
|
#include "actions.h"
|
||||||
#include "funcs.h"
|
|
||||||
#include "appmenu.h"
|
#include "appmenu.h"
|
||||||
#include "framewin.h"
|
#include "framewin.h"
|
||||||
|
|
||||||
|
|||||||
@@ -22,6 +22,7 @@
|
|||||||
|
|
||||||
#ifdef BALLOON_TEXT
|
#ifdef BALLOON_TEXT
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
#include <X11/Xlib.h>
|
#include <X11/Xlib.h>
|
||||||
#include <X11/Xutil.h>
|
#include <X11/Xutil.h>
|
||||||
#ifdef SHAPED_BALLOON
|
#ifdef SHAPED_BALLOON
|
||||||
@@ -39,7 +40,6 @@
|
|||||||
#include "framewin.h"
|
#include "framewin.h"
|
||||||
#include "icon.h"
|
#include "icon.h"
|
||||||
#include "appicon.h"
|
#include "appicon.h"
|
||||||
#include "funcs.h"
|
|
||||||
#include "workspace.h"
|
#include "workspace.h"
|
||||||
#include "balloon.h"
|
#include "balloon.h"
|
||||||
|
|
||||||
|
|||||||
@@ -51,6 +51,7 @@
|
|||||||
#include "WindowMaker.h"
|
#include "WindowMaker.h"
|
||||||
#include "GNUstep.h"
|
#include "GNUstep.h"
|
||||||
#include "screen.h"
|
#include "screen.h"
|
||||||
|
#include "window.h"
|
||||||
#include "dialog.h"
|
#include "dialog.h"
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
#include "stacking.h"
|
#include "stacking.h"
|
||||||
|
|||||||
@@ -24,6 +24,7 @@
|
|||||||
|
|
||||||
#include <X11/Xlib.h>
|
#include <X11/Xlib.h>
|
||||||
#include <X11/Xutil.h>
|
#include <X11/Xutil.h>
|
||||||
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <strings.h>
|
#include <strings.h>
|
||||||
|
|||||||
@@ -23,10 +23,7 @@
|
|||||||
#ifndef WMDOCK_H_
|
#ifndef WMDOCK_H_
|
||||||
#define WMDOCK_H_
|
#define WMDOCK_H_
|
||||||
|
|
||||||
|
|
||||||
#include "appicon.h"
|
#include "appicon.h"
|
||||||
#include "funcs.h"
|
|
||||||
|
|
||||||
|
|
||||||
typedef struct WDock {
|
typedef struct WDock {
|
||||||
WScreen *screen_ptr;
|
WScreen *screen_ptr;
|
||||||
|
|||||||
@@ -25,6 +25,7 @@
|
|||||||
#include <X11/Xutil.h>
|
#include <X11/Xutil.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
#include "WindowMaker.h"
|
#include "WindowMaker.h"
|
||||||
#include "window.h"
|
#include "window.h"
|
||||||
|
|||||||
@@ -22,6 +22,8 @@
|
|||||||
#ifndef WMEVENT_H
|
#ifndef WMEVENT_H
|
||||||
#define WMEVENT_H
|
#define WMEVENT_H
|
||||||
|
|
||||||
|
typedef void (WDeathHandler)(pid_t pid, unsigned int status, void *cdata);
|
||||||
|
|
||||||
void EventLoop(void);
|
void EventLoop(void);
|
||||||
void DispatchEvent(XEvent *event);
|
void DispatchEvent(XEvent *event);
|
||||||
void ProcessPendingEvents(void);
|
void ProcessPendingEvents(void);
|
||||||
|
|||||||
@@ -37,6 +37,7 @@
|
|||||||
#include "resources.h"
|
#include "resources.h"
|
||||||
#include "screen.h"
|
#include "screen.h"
|
||||||
#include "wcore.h"
|
#include "wcore.h"
|
||||||
|
#include "window.h"
|
||||||
#include "framewin.h"
|
#include "framewin.h"
|
||||||
#include "stacking.h"
|
#include "stacking.h"
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
|
|||||||
@@ -24,7 +24,6 @@
|
|||||||
|
|
||||||
#include "wcore.h"
|
#include "wcore.h"
|
||||||
#include "window.h"
|
#include "window.h"
|
||||||
#include "funcs.h"
|
|
||||||
|
|
||||||
#define TILE_NORMAL 0
|
#define TILE_NORMAL 0
|
||||||
#define TILE_CLIP 1
|
#define TILE_CLIP 1
|
||||||
|
|||||||
@@ -45,7 +45,7 @@
|
|||||||
|
|
||||||
#include "WindowMaker.h"
|
#include "WindowMaker.h"
|
||||||
#include "window.h"
|
#include "window.h"
|
||||||
#include "funcs.h"
|
#include "defaults.h"
|
||||||
#include "event.h"
|
#include "event.h"
|
||||||
#include "startup.h"
|
#include "startup.h"
|
||||||
#include "menu.h"
|
#include "menu.h"
|
||||||
|
|||||||
@@ -38,6 +38,7 @@
|
|||||||
#include <WINGs/WUtil.h>
|
#include <WINGs/WUtil.h>
|
||||||
#include <wraster.h>
|
#include <wraster.h>
|
||||||
|
|
||||||
|
#include "window.h"
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
#include "WindowMaker.h"
|
#include "WindowMaker.h"
|
||||||
#include "GNUstep.h"
|
#include "GNUstep.h"
|
||||||
|
|||||||
@@ -21,9 +21,10 @@
|
|||||||
#ifndef WMMISC_H_
|
#ifndef WMMISC_H_
|
||||||
#define WMMISC_H_
|
#define WMMISC_H_
|
||||||
|
|
||||||
|
#include "defaults.h"
|
||||||
|
#include "keybind.h"
|
||||||
#include "appicon.h"
|
#include "appicon.h"
|
||||||
|
|
||||||
|
|
||||||
Bool wFetchName(Display *dpy, Window win, char **winname);
|
Bool wFetchName(Display *dpy, Window win, char **winname);
|
||||||
Bool wGetIconName(Display *dpy, Window win, char **iconname);
|
Bool wGetIconName(Display *dpy, Window win, char **iconname);
|
||||||
Bool UpdateDomainFile(WDDomain * domain);
|
Bool UpdateDomainFile(WDDomain * domain);
|
||||||
|
|||||||
@@ -38,7 +38,6 @@
|
|||||||
#include "window.h"
|
#include "window.h"
|
||||||
#include "dialog.h"
|
#include "dialog.h"
|
||||||
#include "main.h"
|
#include "main.h"
|
||||||
#include "funcs.h"
|
|
||||||
|
|
||||||
/****** Global Variables ******/
|
/****** Global Variables ******/
|
||||||
extern WPreferences wPreferences;
|
extern WPreferences wPreferences;
|
||||||
|
|||||||
@@ -35,7 +35,6 @@
|
|||||||
#include "properties.h"
|
#include "properties.h"
|
||||||
#include "icon.h"
|
#include "icon.h"
|
||||||
#include "client.h"
|
#include "client.h"
|
||||||
#include "funcs.h"
|
|
||||||
#include "motif.h"
|
#include "motif.h"
|
||||||
|
|
||||||
/* Motif window hints */
|
/* Motif window hints */
|
||||||
|
|||||||
@@ -34,7 +34,6 @@
|
|||||||
#include "client.h"
|
#include "client.h"
|
||||||
#include "icon.h"
|
#include "icon.h"
|
||||||
#include "dock.h"
|
#include "dock.h"
|
||||||
#include "funcs.h"
|
|
||||||
#include "actions.h"
|
#include "actions.h"
|
||||||
#include "workspace.h"
|
#include "workspace.h"
|
||||||
#include "placement.h"
|
#include "placement.h"
|
||||||
|
|||||||
@@ -18,21 +18,8 @@
|
|||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef WMFUNCS_H_
|
#ifndef WMOSDEP_H_
|
||||||
#define WMFUNCS_H_
|
#define WMOSDEP_H_
|
||||||
|
|
||||||
#include <sys/types.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
|
|
||||||
#include "window.h"
|
|
||||||
#include "defaults.h"
|
|
||||||
#include "keybind.h"
|
|
||||||
|
|
||||||
typedef void (WCallBack)(void *cdata);
|
|
||||||
typedef void (WDeathHandler)(pid_t pid, unsigned int status, void *cdata);
|
|
||||||
|
|
||||||
|
|
||||||
/* ---[ osdep_*.c ]------------------------------------------------------- */
|
|
||||||
|
|
||||||
Bool GetCommandForPid(int pid, char ***argv, int *argc);
|
Bool GetCommandForPid(int pid, char ***argv, int *argc);
|
||||||
|
|
||||||
@@ -32,7 +32,7 @@
|
|||||||
#include <WINGs/WUtil.h>
|
#include <WINGs/WUtil.h>
|
||||||
|
|
||||||
#include "wconfig.h"
|
#include "wconfig.h"
|
||||||
#include "funcs.h"
|
#include "osdep.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* copy argc and argv for an existing process identified by `pid'
|
* copy argc and argv for an existing process identified by `pid'
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
#include <WINGs/WUtil.h>
|
#include <WINGs/WUtil.h>
|
||||||
|
|
||||||
#include "wconfig.h"
|
#include "wconfig.h"
|
||||||
#include "funcs.h"
|
#include "osdep.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* copy argc and argv for an existing process identified by `pid'
|
* copy argc and argv for an existing process identified by `pid'
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
#include <WINGs/WUtil.h>
|
#include <WINGs/WUtil.h>
|
||||||
|
|
||||||
#include "wconfig.h"
|
#include "wconfig.h"
|
||||||
#include "funcs.h"
|
#include "osdep.h"
|
||||||
|
|
||||||
|
|
||||||
#define RETRY( x ) do { \
|
#define RETRY( x ) do { \
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
#include <WINGs/WUtil.h>
|
#include <WINGs/WUtil.h>
|
||||||
|
|
||||||
#include "wconfig.h"
|
#include "wconfig.h"
|
||||||
#include "funcs.h"
|
#include "osdep.h"
|
||||||
|
|
||||||
Bool GetCommandForPid(int pid, char ***argv, int *argc)
|
Bool GetCommandForPid(int pid, char ***argv, int *argc)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -34,7 +34,6 @@
|
|||||||
#include "icon.h"
|
#include "icon.h"
|
||||||
#include "appicon.h"
|
#include "appicon.h"
|
||||||
#include "actions.h"
|
#include "actions.h"
|
||||||
#include "funcs.h"
|
|
||||||
#include "application.h"
|
#include "application.h"
|
||||||
#include "dock.h"
|
#include "dock.h"
|
||||||
#include "xinerama.h"
|
#include "xinerama.h"
|
||||||
|
|||||||
@@ -45,7 +45,7 @@
|
|||||||
#include "texture.h"
|
#include "texture.h"
|
||||||
#include "pixmap.h"
|
#include "pixmap.h"
|
||||||
#include "menu.h"
|
#include "menu.h"
|
||||||
#include "funcs.h"
|
#include "window.h"
|
||||||
#include "main.h"
|
#include "main.h"
|
||||||
#include "actions.h"
|
#include "actions.h"
|
||||||
#include "properties.h"
|
#include "properties.h"
|
||||||
|
|||||||
@@ -30,7 +30,6 @@
|
|||||||
#include "WindowMaker.h"
|
#include "WindowMaker.h"
|
||||||
#include "window.h"
|
#include "window.h"
|
||||||
#include "client.h"
|
#include "client.h"
|
||||||
#include "funcs.h"
|
|
||||||
#include "main.h"
|
#include "main.h"
|
||||||
#include "properties.h"
|
#include "properties.h"
|
||||||
#include "session.h"
|
#include "session.h"
|
||||||
|
|||||||
@@ -30,7 +30,6 @@
|
|||||||
#include "WindowMaker.h"
|
#include "WindowMaker.h"
|
||||||
#include "screen.h"
|
#include "screen.h"
|
||||||
#include "window.h"
|
#include "window.h"
|
||||||
#include "funcs.h"
|
|
||||||
#include "actions.h"
|
#include "actions.h"
|
||||||
#include "properties.h"
|
#include "properties.h"
|
||||||
#include "stacking.h"
|
#include "stacking.h"
|
||||||
|
|||||||
@@ -31,6 +31,7 @@
|
|||||||
|
|
||||||
#include "WindowMaker.h"
|
#include "WindowMaker.h"
|
||||||
#include "texture.h"
|
#include "texture.h"
|
||||||
|
#include "window.h"
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
|
|
||||||
extern WPreferences wPreferences;
|
extern WPreferences wPreferences;
|
||||||
|
|||||||
@@ -63,6 +63,7 @@
|
|||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
#include "startup.h"
|
#include "startup.h"
|
||||||
#include "winmenu.h"
|
#include "winmenu.h"
|
||||||
|
#include "osdep.h"
|
||||||
|
|
||||||
#ifdef MWM_HINTS
|
#ifdef MWM_HINTS
|
||||||
# include "motif.h"
|
# include "motif.h"
|
||||||
|
|||||||
Reference in New Issue
Block a user