Fixed a race condition on RPC worker thread creation, and a typo.
[wine] / dlls / cabinet / fci.c
1 /*
2  * File Compression Interface
3  *
4  * Copyright 2002 Patrik Stridvall
5  *
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.
10  *
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.
15  *
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
19  */
20
21 #include "config.h"
22
23 #include "windef.h"
24 #include "winbase.h"
25 #include "winerror.h"
26 #include "fci.h"
27
28 #include "wine/debug.h"
29
30 WINE_DEFAULT_DEBUG_CHANNEL(cabinet);
31
32 /***********************************************************************
33  *              FCICreate (CABINET.10)
34  */
35 HFCI __cdecl FCICreate(
36         PERF perf,
37         PFNFCIFILEPLACED   pfnfcifp,
38         PFNFCIALLOC        pfna,
39         PFNFCIFREE         pfnf,
40         PFNFCIOPEN         pfnopen,
41         PFNFCIREAD         pfnread,
42         PFNFCIWRITE        pfnwrite,
43         PFNFCICLOSE        pfnclose,
44         PFNFCISEEK         pfnseek,
45         PFNFCIDELETE       pfndelete,
46         PFNFCIGETTEMPFILE  pfnfcigtf,
47         PCCAB              pccab,
48         void *pv)
49 {
50     FIXME("(%p, %p, %p, %p, %p, %p, %p, %p, %p, %p, %p, %p, %p): stub\n",
51           perf, pfnfcifp, pfna, pfnf, pfnopen, pfnread, pfnwrite, pfnclose,
52           pfnseek, pfndelete, pfnfcigtf, pccab, pv);
53
54     perf->erfOper = FCIERR_NONE;
55     perf->erfType = 0;
56     perf->fError = TRUE;
57
58     SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
59
60     return NULL;
61 }
62
63 /***********************************************************************
64  *              FCIAddFile (CABINET.11)
65  */
66 BOOL __cdecl FCIAddFile(
67         HFCI                  hfci,
68         char                 *pszSourceFile,
69         char                 *pszFileName,
70         BOOL                  fExecute,
71         PFNFCIGETNEXTCABINET  pfnfcignc,
72         PFNFCISTATUS          pfnfcis,
73         PFNFCIGETOPENINFO     pfnfcigoi,
74         TCOMP                 typeCompress)
75 {
76     FIXME("(%p, %p, %p, %d, %p, %p, %p, %hu): stub\n", hfci, pszSourceFile,
77           pszFileName, fExecute, pfnfcignc, pfnfcis, pfnfcigoi, typeCompress);
78
79     SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
80
81     return FALSE;
82 }
83
84 /***********************************************************************
85  *              FCIFlushCabinet (CABINET.13)
86  */
87 BOOL __cdecl FCIFlushCabinet(
88         HFCI                  hfci,
89         BOOL                  fGetNextCab,
90         PFNFCIGETNEXTCABINET  pfnfcignc,
91         PFNFCISTATUS          pfnfcis)
92 {
93     FIXME("(%p, %d, %p, %p): stub\n", hfci, fGetNextCab, pfnfcignc, pfnfcis);
94
95     SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
96
97     return FALSE;
98 }
99
100 /***********************************************************************
101  *              FCIFlushFolder (CABINET.12)
102  */
103 BOOL __cdecl FCIFlushFolder(
104         HFCI                  hfci,
105         PFNFCIGETNEXTCABINET  pfnfcignc,
106         PFNFCISTATUS          pfnfcis)
107 {
108     FIXME("(%p, %p, %p): stub\n", hfci, pfnfcignc, pfnfcis);
109
110     SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
111
112     return FALSE;
113 }
114
115 /***********************************************************************
116  *              FCIDestroy (CABINET.14)
117  */
118 BOOL __cdecl FCIDestroy(HFCI hfci)
119 {
120     FIXME("(%p): stub\n", hfci);
121
122     SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
123
124     return FALSE;
125 }