summaryrefslogtreecommitdiffstats
path: root/win/stubs.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-12-20 10:41:43 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-12-20 10:41:43 (GMT)
commit2f89fa96c29e874b87523d628df15c62984dd9b7 (patch)
tree512c62f76a0e9be490f422d8aa6f866cd1c0c5c3 /win/stubs.c
parent22f8312f1177e98133c31e059d6f1ae948178f37 (diff)
downloadtk-2f89fa96c29e874b87523d628df15c62984dd9b7.zip
tk-2f89fa96c29e874b87523d628df15c62984dd9b7.tar.gz
tk-2f89fa96c29e874b87523d628df15c62984dd9b7.tar.bz2
Much more WIP: Appears to be working on UNIX, and for a bit part on Windows too.
Diffstat (limited to 'win/stubs.c')
-rw-r--r--win/stubs.c177
1 files changed, 176 insertions, 1 deletions
diff --git a/win/stubs.c b/win/stubs.c
index 1796e17..faeac08 100644
--- a/win/stubs.c
+++ b/win/stubs.c
@@ -8,6 +8,8 @@ int
_XInitImageFuncPtrs(
XImage *image)
{
+ (void)image;
+
return Success;
}
@@ -21,6 +23,9 @@ XSetWMClientMachine(
Window w,
XTextProperty *text_prop)
{
+ (void)display;
+ (void)w;
+ (void)text_prop;
}
Status
@@ -29,6 +34,10 @@ XStringListToTextProperty(
int count,
XTextProperty *text_prop_return)
{
+ (void)list;
+ (void)count;
+ (void)text_prop_return;
+
return Success;
}
@@ -47,12 +56,22 @@ XChangeProperty(
_Xconst unsigned char *data,
int nelements)
{
+ (void)display;
+ (void)w;
+ (void)property;
+ (void)type;
+ (void)format;
+ (void)mode;
+ (void)data;
+ (void)nelements;
+
return Success;
}
XIC
XCreateIC(XIM xim, ...)
{
+ (void)xim;
return NULL;
}
@@ -62,6 +81,10 @@ XDeleteProperty(
Window w,
Atom property)
{
+ (void)display;
+ (void)w;
+ (void)property;
+
return Success;
}
@@ -70,6 +93,9 @@ XFilterEvent(
XEvent *event,
Window window)
{
+ (void)event;
+ (void)window;
+
return 0;
}
@@ -78,6 +104,9 @@ XForceScreenSaver(
Display *display,
int mode)
{
+ (void)display;
+ (void)mode;
+
return Success;
}
@@ -86,6 +115,9 @@ XFreeCursor(
Display *display,
Cursor cursor)
{
+ (void)display;
+ (void)cursor;
+
return Success;
}
@@ -93,6 +125,8 @@ GContext
XGContextFromGC(
GC gc)
{
+ (void)gc;
+
return (GContext) NULL;
}
@@ -101,6 +135,9 @@ XGetAtomName(
Display *display,
Atom atom)
{
+ (void)display;
+ (void)atom;
+
return NULL;
}
@@ -110,6 +147,10 @@ XGetWindowAttributes(
Window w,
XWindowAttributes *window_attributes_return)
{
+ (void)display;
+ (void)w;
+ (void)window_attributes_return;
+
return Success;
}
@@ -120,6 +161,11 @@ XGetWMColormapWindows(
Window **windows_return,
int *count_return)
{
+ (void)display;
+ (void)w;
+ (void)windows_return;
+ (void)count_return;
+
return Success;
}
@@ -129,6 +175,10 @@ XIconifyWindow(
Window w,
int screen_number)
{
+ (void)display;
+ (void)w;
+ (void)screen_number;
+
return Success;
}
@@ -138,6 +188,10 @@ XListHosts(
int *nhosts_return,
Bool *state_return)
{
+ (void)display;
+ (void)nhosts_return;
+ (void)state_return;
+
return NULL;
}
@@ -149,6 +203,12 @@ XLookupColor(
XColor *exact_def_return,
XColor *screen_def_return)
{
+ (void)display;
+ (void)colormap;
+ (void)color_name;
+ (void)exact_def_return;
+ (void)screen_def_return;
+
return Success;
}
@@ -157,6 +217,9 @@ XNextEvent(
Display *display,
XEvent *event_return)
{
+ (void)display;
+ (void)event_return;
+
return Success;
}
@@ -165,6 +228,9 @@ XPutBackEvent(
Display *display,
XEvent *event)
{
+ (void)display;
+ (void)event;
+
return Success;
}
@@ -175,6 +241,11 @@ XQueryColors(
XColor *defs_in_out,
int ncolors)
{
+ (void)display;
+ (void)colormap;
+ (void)defs_in_out;
+ (void)ncolors;
+
return Success;
}
@@ -187,6 +258,13 @@ XQueryTree(
Window **children_return,
unsigned int *nchildren_return)
{
+ (void)display;
+ (void)w;
+ (void)root_return;
+ (void)parent_return;
+ (void)children_return;
+ (void)nchildren_return;
+
return Success;
}
@@ -194,6 +272,8 @@ int
XRefreshKeyboardMapping(
XMappingEvent *event_map)
{
+ (void)event_map;
+
return Success;
}
@@ -202,6 +282,9 @@ XRootWindow(
Display *display,
int screen_number)
{
+ (void)display;
+ (void)screen_number;
+
return (Window) NULL;
}
@@ -211,6 +294,10 @@ XSelectInput(
Window w,
long event_mask)
{
+ (void)display;
+ (void)w;
+ (void)event_mask;
+
return Success;
}
@@ -222,6 +309,12 @@ XSendEvent(
long event_mask,
XEvent *event_send)
{
+ (void)display;
+ (void)w;
+ (void)propagate;
+ (void)event_mask;
+ (void)event_send;
+
return Success;
}
@@ -232,6 +325,11 @@ XSetCommand(
char **argv,
int argc)
{
+ (void)display;
+ (void)w;
+ (void)argv;
+ (void)argc;
+
return Success;
}
@@ -239,6 +337,8 @@ XErrorHandler
XSetErrorHandler(
XErrorHandler handler)
{
+ (void)handler;
+
return NULL;
}
@@ -248,6 +348,10 @@ XSetIconName(
Window w,
_Xconst char *icon_name)
{
+ (void)display;
+ (void)w;
+ (void)icon_name;
+
return Success;
}
@@ -257,6 +361,10 @@ XSetWindowBackground(
Window w,
unsigned long background_pixel)
{
+ (void)display;
+ (void)w;
+ (void)background_pixel;
+
return Success;
}
@@ -266,6 +374,10 @@ XSetWindowBackgroundPixmap(
Window w,
Pixmap background_pixmap)
{
+ (void)display;
+ (void)w;
+ (void)background_pixmap;
+
return Success;
}
@@ -275,6 +387,10 @@ XSetWindowBorder(
Window w,
unsigned long border_pixel)
{
+ (void)display;
+ (void)w;
+ (void)border_pixel;
+
return Success;
}
@@ -284,6 +400,10 @@ XSetWindowBorderPixmap(
Window w,
Pixmap border_pixmap)
{
+ (void)display;
+ (void)w;
+ (void)border_pixmap;
+
return Success;
}
@@ -293,6 +413,10 @@ XSetWindowBorderWidth(
Window w,
unsigned int width)
{
+ (void)display;
+ (void)w;
+ (void)width;
+
return Success;
}
@@ -302,6 +426,10 @@ XSetWindowColormap(
Window w,
Colormap colormap)
{
+ (void)display;
+ (void)w;
+ (void)colormap;
+
return Success;
}
@@ -316,6 +444,15 @@ XTranslateCoordinates(
int *dest_y_return,
Window *child_return)
{
+ (void)display;
+ (void)src_w;
+ (void)dest_w;
+ (void)src_x;
+ (void)src_y;
+ (void)dest_x_return;
+ (void)dest_y_return;
+ (void)child_return;
+
return 0;
}
@@ -326,6 +463,11 @@ XWindowEvent(
long event_mask,
XEvent *event_return)
{
+ (void)display;
+ (void)w;
+ (void)event_mask;
+ (void)event_return;
+
return Success;
}
@@ -335,6 +477,10 @@ XWithdrawWindow(
Window w,
int screen_number)
{
+ (void)display;
+ (void)w;
+ (void)screen_number;
+
return Success;
}
@@ -347,6 +493,13 @@ XmbLookupString(
KeySym *keysym_return,
Status *status_return)
{
+ (void)ic;
+ (void)event;
+ (void)buffer_return;
+ (void)bytes_buffer;
+ (void)keysym_return;
+ (void)status_return;
+
return Success;
}
@@ -357,7 +510,7 @@ XGetWindowProperty(
Atom property,
long long_offset,
long long_length,
- Bool delete,
+ Bool del,
Atom req_type,
Atom *actual_type_return,
int *actual_format_return,
@@ -365,6 +518,14 @@ XGetWindowProperty(
unsigned long *bytes_after_return,
unsigned char **prop_return)
{
+ (void)display;
+ (void)w;
+ (void)property;
+ (void)long_offset;
+ (void)long_length;
+ (void)del;
+ (void)req_type;
+
*actual_type_return = None;
*actual_format_return = 0;
*nitems_return = 0;
@@ -381,6 +542,8 @@ int
XFlush(
Display *display)
{
+ (void)display;
+
return 0;
}
@@ -388,6 +551,8 @@ int
XGrabServer(
Display *display)
{
+ (void)display;
+
return 0;
}
@@ -395,6 +560,8 @@ int
XUngrabServer(
Display *display)
{
+ (void)display;
+
return 0;
}
@@ -421,6 +588,8 @@ XSynchronize(
Display *display,
Bool onoff)
{
+ (void)onoff;
+
display->request++;
return NULL;
}
@@ -430,6 +599,8 @@ XSync(
Display *display,
Bool discard)
{
+ (void)discard;
+
display->request++;
return 0;
}
@@ -447,5 +618,9 @@ XOffsetRegion(
int dx,
int dy)
{
+ (void)rgn;
+ (void)dx;
+ (void)dy;
+
return 0;
}