Skip to content

Commit

Permalink
Add missing prototypes to supportw.c.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Rønne Petersen committed Jun 7, 2014
1 parent f35c6a0 commit b45527f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions support/supportw.c
Original file line number Diff line number Diff line change
Expand Up @@ -158,20 +158,29 @@ FindWindowExW (gpointer hwndParent, gpointer hwndChildAfter, const char *classw,
return func (hwndParent, hwndChildAfter, classw, window);
}

int
SetWindowPos (gpointer hwnd, gpointer hwndInsertAfter, int x, int y, int cx, int cy, unsigned int flags);

int
SetWindowPos (gpointer hwnd, gpointer hwndInsertAfter, int x, int y, int cx, int cy, unsigned int flags)
{
fprintf (stderr, "SetWindowPos %p %p to [%d,%dx%d,%d] %d\n", hwnd, hwndInsertAfter, x, y, cx, cy, flags);
return 1;
}

int
SendMessageA (gpointer hwnd, unsigned int msg, gpointer wparam, gpointer lparam);

int
SendMessageA (gpointer hwnd, unsigned int msg, gpointer wparam, gpointer lparam)
{
fprintf (stderr, "SendMessage (%d, 0x%x, %p, %p)\n", (int) GPOINTER_TO_INT (hwnd), msg, wparam, lparam);
return 0;
}

int
GetWindowLongA (gpointer hwnd, int a);

int
GetWindowLongA (gpointer hwnd, int a)
{
Expand Down

0 comments on commit b45527f

Please sign in to comment.