Fix for implicit declaration of abs.
[wine/multimedia.git] / include / local.h
blob964ba4bf8616a08b5642cf98ec00f14e680b64de
1 /*
2 * Local heap declarations
4 * Copyright 1995 Alexandre Julliard
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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 #ifndef __WINE_LOCAL_H
22 #define __WINE_LOCAL_H
24 #include "windef.h"
25 #include "wine/windef16.h"
27 /* These function are equivalent to the Local* API functions, */
28 /* excepted that they need DS as the first parameter. This */
29 /* allows managing several heaps from the emulation library. */
31 extern HLOCAL16 LOCAL_Alloc( HANDLE16 ds, UINT16 flags, WORD size );
32 extern HLOCAL16 LOCAL_ReAlloc( HANDLE16 ds, HLOCAL16 handle,
33 WORD size, UINT16 flags );
34 extern HLOCAL16 LOCAL_Free( HANDLE16 ds, HLOCAL16 handle );
35 extern HLOCAL16 LOCAL_Handle( HANDLE16 ds, WORD addr );
36 extern UINT16 LOCAL_Size( HANDLE16 ds, HLOCAL16 handle );
37 extern UINT16 LOCAL_Flags( HANDLE16 ds, HLOCAL16 handle );
38 extern UINT16 LOCAL_HeapSize( HANDLE16 ds );
39 extern UINT16 LOCAL_CountFree( HANDLE16 ds );
40 extern void *LOCAL_Lock( HANDLE16 ds, HLOCAL16 handle );
41 extern BOOL16 LOCAL_Unlock( HANDLE16 ds, HLOCAL16 handle );
42 extern WORD LOCAL_Compact( HANDLE16 ds, UINT16 minfree, UINT16 flags );
44 #endif /* __WINE_LOCAL_H */