VirtualBox

source: vbox/trunk/src/VBox/Main/include/ExtPackUtil.h@ 33656

Last change on this file since 33656 was 33656, checked in by vboxsync, 15 years ago

*: rebrand Sun (L)GPL disclaimers

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.5 KB
Line 
1/* $Id: ExtPackUtil.h 33656 2010-11-01 14:18:11Z vboxsync $ */
2/** @file
3 * VirtualBox Main - Extension Pack Utilities and definitions, VBoxC, VBoxSVC, ++.
4 */
5
6/*
7 * Copyright (C) 2010 Oracle Corporation
8 *
9 * Oracle Corporation confidential
10 * All rights reserved
11 */
12
13#ifndef ____H_EXTPACKUTIL
14#define ____H_EXTPACKUTIL
15
16#include <iprt/cpp/ministring.h>
17#include <iprt/fs.h>
18
19
20/** @name VBOX_EXTPACK_DESCRIPTION_NAME
21 * The name of the description file in an extension pack. */
22#define VBOX_EXTPACK_DESCRIPTION_NAME "ExtPack.xml"
23
24
25/**
26 * Description of an extension pack.
27 *
28 * This is the internal representation of the ExtPack.xml.
29 */
30typedef struct VBOXEXTPACKDESC
31{
32 /** The name. */
33 iprt::MiniString strName;
34 /** The description. */
35 iprt::MiniString strDescription;
36 /** The version string. */
37 iprt::MiniString strVersion;
38 /** The internal revision number. */
39 uint32_t uRevision;
40 /** The name of the main module. */
41 iprt::MiniString strMainModule;
42} VBOXEXTPACKDESC;
43
44/** Pointer to a extension pack description. */
45typedef VBOXEXTPACKDESC *PVBOXEXTPACKDESC;
46/** Pointer to a const extension pack description. */
47typedef VBOXEXTPACKDESC const *PCVBOXEXTPACKDESC;
48
49
50iprt::MiniString *VBoxExtPackLoadDesc(const char *a_pszDir, PVBOXEXTPACKDESC a_pExtPackDesc, PRTFSOBJINFO a_pObjInfo);
51bool VBoxExtPackIsValidName(const char *pszName);
52bool VBoxExtPackIsValidVersionString(const char *pszName);
53bool VBoxExtPackIsValidMainModuleString(const char *pszMainModule);
54
55
56#endif
57
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette