dibdrv: Add stubs to match winex11 GDI driver exports
[wine/dibdrv.git] / dlls / winedib.drv / init.c
blob409c37e5df6fe339661a3f5bae7b0f7dd62b6f20
1 /*
2 * DIB driver initialization functions
4 * Copyright 2007 Jesse Allen
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
21 #include "config.h"
23 #include <stdarg.h>
24 #include "windef.h"
25 #include "winbase.h"
26 #include "wine/debug.h"
28 #include "dibdrv.h"
30 WINE_DEFAULT_DEBUG_CHANNEL(dibdrv);
32 /**********************************************************************
33 * DIBDRV_CreateDC
35 BOOL DIBDRV_CreateDC( HDC hdc, DIBDRVPHYSDEV **pdev, LPCWSTR driver, LPCWSTR device,
36 LPCWSTR output, const DEVMODEW* initData )
38 DIBDRVPHYSDEV *physDev;
40 physDev = HeapAlloc( GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*physDev) );
41 if (!physDev) return FALSE;
43 *pdev = physDev;
44 physDev->hdc = hdc;
46 return TRUE;
49 /**********************************************************************
50 * DIBDRV_DeleteDC
52 BOOL DIBDRV_DeleteDC( DIBDRVPHYSDEV *physDev )
54 if (physDev->bmp)
56 if (physDev->bmp->color_table)
57 HeapFree( GetProcessHeap(), 0, physDev->bmp->color_table );
58 HeapFree( GetProcessHeap(), 0, physDev->bmp );
60 HeapFree( GetProcessHeap(), 0, physDev );
61 return TRUE;
64 /**********************************************************************
65 * DIBDRV_ExtEscape
67 INT DIBDRV_ExtEscape( DIBDRVPHYSDEV *physDev, INT escape, INT in_count, LPCVOID in_data,
68 INT out_count, LPVOID out_data )
70 FIXME("stub\n");
71 return 0;
74 /***********************************************************************
75 * DIBDRV_GetDeviceCaps
77 INT DIBDRV_GetDeviceCaps( DIBDRVPHYSDEV *physDev, INT cap )
79 FIXME("stub\n");
80 return 0;