2 * List of components. (for internal use)
4 * Copyright (C) Hidenori TAKESHIMA <hidenori@a2.ctktv.ne.jp>
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 QUARTZ_COMPLIST_H
22 #define QUARTZ_COMPLIST_H
24 typedef struct QUARTZ_CompList QUARTZ_CompList;
25 typedef struct QUARTZ_CompListItem QUARTZ_CompListItem;
27 QUARTZ_CompList* QUARTZ_CompList_Alloc( void );
28 void QUARTZ_CompList_Free( QUARTZ_CompList* pList );
29 void QUARTZ_CompList_Lock( QUARTZ_CompList* pList );
30 void QUARTZ_CompList_Unlock( QUARTZ_CompList* pList );
32 QUARTZ_CompList* QUARTZ_CompList_Dup(
33 const QUARTZ_CompList* pList, BOOL fDupData );
34 HRESULT QUARTZ_CompList_AddComp(
35 QUARTZ_CompList* pList, IUnknown* punk,
36 const void* pvData, DWORD dwDataLen );
37 HRESULT QUARTZ_CompList_AddTailComp(
38 QUARTZ_CompList* pList, IUnknown* punk,
39 const void* pvData, DWORD dwDataLen );
40 HRESULT QUARTZ_CompList_RemoveComp( QUARTZ_CompList* pList, IUnknown* punk );
41 QUARTZ_CompListItem* QUARTZ_CompList_SearchComp(
42 QUARTZ_CompList* pList, IUnknown* punk );
43 QUARTZ_CompListItem* QUARTZ_CompList_SearchData(
44 QUARTZ_CompList* pList, const void* pvData, DWORD dwDataLen );
45 QUARTZ_CompListItem* QUARTZ_CompList_GetFirst(
46 QUARTZ_CompList* pList );
47 QUARTZ_CompListItem* QUARTZ_CompList_GetLast(
48 QUARTZ_CompList* pList );
49 QUARTZ_CompListItem* QUARTZ_CompList_GetNext(
50 QUARTZ_CompList* pList, QUARTZ_CompListItem* pPrev );
51 QUARTZ_CompListItem* QUARTZ_CompList_GetPrev(
52 QUARTZ_CompList* pList, QUARTZ_CompListItem* pNext );
53 IUnknown* QUARTZ_CompList_GetItemPtr( QUARTZ_CompListItem* pItem );
54 const void* QUARTZ_CompList_GetDataPtr( QUARTZ_CompListItem* pItem );
55 DWORD QUARTZ_CompList_GetDataLength( QUARTZ_CompListItem* pItem );
58 #endif /* QUARTZ_COMPLIST_H */