Changeset 34787 in vbox for trunk/src/VBox/Main/include
- Timestamp:
- Dec 7, 2010 2:51:18 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 68597
- Location:
- trunk/src/VBox/Main/include
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/ExtPackManagerImpl.h
r34714 r34787 46 46 HRESULT FinalConstruct(); 47 47 void FinalRelease(); 48 HRESULT initWithFile(const char *a_pszFile );48 HRESULT initWithFile(const char *a_pszFile, class ExtPackManager *a_pExtPackMgr); 49 49 void uninit(); 50 RTMEMEF_NEW_AND_DELETE_OPERATORS(); 50 51 /** @} */ 51 52 … … 67 68 STDMETHOD(Install)(void); 68 69 /** @} */ 70 71 private: 72 /** @name Misc init helpers 73 * @{ */ 74 HRESULT initFailed(const char *a_pszWhyFmt, ...); 75 /** @} */ 69 76 70 77 private: … … 102 109 HRESULT initWithDir(VBOXEXTPACKCTX a_enmContext, const char *a_pszName, const char *a_pszDir); 103 110 void uninit(); 111 RTMEMEF_NEW_AND_DELETE_OPERATORS(); 104 112 /** @} */ 105 113 … … 188 196 VBOXEXTPACKCTX a_enmContext); 189 197 void uninit(); 198 RTMEMEF_NEW_AND_DELETE_OPERATORS(); 190 199 /** @} */ 191 200 … … 195 204 STDMETHOD(Find)(IN_BSTR a_bstrName, IExtPack **a_pExtPack); 196 205 STDMETHOD(OpenExtPackFile)(IN_BSTR a_bstrTarball, IExtPackFile **a_ppExtPackFile); 197 STDMETHOD(Install)(IN_BSTR a_bstrTarball, BSTR *a_pbstrName);198 206 STDMETHOD(Uninstall)(IN_BSTR a_bstrName, BOOL a_fForcedRemoval); 199 207 STDMETHOD(Cleanup)(void); … … 203 211 /** @name Internal interfaces used by other Main classes. 204 212 * @{ */ 205 void processDropZone(void); 213 HRESULT doInstall(ExtPackFile *a_pExtPackFile); 214 /*void processDropZone(void);*/ 206 215 void callAllVirtualBoxReadyHooks(void); 207 216 void callAllConsoleReadyHooks(IConsole *a_pConsole); -
trunk/src/VBox/Main/include/ExtPackUtil.h
r34579 r34787 21 21 #include <iprt/cpp/ministring.h> 22 22 #include <iprt/fs.h> 23 #include <iprt/vfs.h> 23 24 24 25 … … 47 48 * certificates are installed. Relative to RTPathAppPrivateNoArch. */ 48 49 #define VBOX_EXTPACK_CERT_DIR "ExtPackCertificates" 50 51 /** The maximum entry name length. 52 * Play short and safe. */ 53 #define VBOX_EXTPACK_MAX_MEMBER_NAME_LENGTH 128 49 54 50 55 … … 98 103 99 104 iprt::MiniString *VBoxExtPackLoadDesc(const char *a_pszDir, PVBOXEXTPACKDESC a_pExtPackDesc, PRTFSOBJINFO a_pObjInfo); 105 iprt::MiniString *VBoxExtPackLoadDescFromVfsFile(RTVFSFILE hVfsFile, PVBOXEXTPACKDESC a_pExtPackDesc, PRTFSOBJINFO a_pObjInfo); 100 106 iprt::MiniString *VBoxExtPackExtractNameFromTarballPath(const char *pszTarball); 101 107 void VBoxExtPackFreeDesc(PVBOXEXTPACKDESC a_pExtPackDesc); … … 108 114 bool VBoxExtPackIsValidModuleString(const char *pszModule); 109 115 116 int VBoxExtPackValidateMember(const char *pszName, RTVFSOBJTYPE enmType, RTVFSOBJ hVfsObj, char *pszError, size_t cbError); 117 int VBoxExtPackOpenTarFss(RTFILE hTarballFile, char *pszError, size_t cbError, PRTVFSFSSTREAM phTarFss); 118 int VBoxExtPackValidateTarball(RTFILE hTarballFile, const char *pszExtPackName, const char *pszTarball, 119 char *pszError, size_t cbError, PRTMANIFEST phValidManifest, PRTVFSFILE phXmlFile); 120 110 121 111 122 #endif
Note:
See TracChangeset
for help on using the changeset viewer.