Bug 454376 add -lCrun -lCstd for Solaris OS_LIBS, r=bsmedberg
[wine-gecko.git] / modules / libreg / include / VerReg.h
blob0090d7277e4d9050b0a476c41581ed047a8e5bd6
1 /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
3 * ***** BEGIN LICENSE BLOCK *****
4 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
6 * The contents of this file are subject to the Mozilla Public License Version
7 * 1.1 (the "License"); you may not use this file except in compliance with
8 * the License. You may obtain a copy of the License at
9 * http://www.mozilla.org/MPL/
11 * Software distributed under the License is distributed on an "AS IS" basis,
12 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
13 * for the specific language governing rights and limitations under the
14 * License.
16 * The Original Code is Mozilla Communicator client code, released
17 * March 31, 1998.
19 * The Initial Developer of the Original Code is
20 * Netscape Communications Corporation.
21 * Portions created by the Initial Developer are Copyright (C) 1998
22 * the Initial Developer. All Rights Reserved.
24 * Contributor(s):
25 * Daniel Veditz <dveditz@netscape.com>
27 * Alternatively, the contents of this file may be used under the terms of
28 * either the GNU General Public License Version 2 or later (the "GPL"), or
29 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
30 * in which case the provisions of the GPL or the LGPL are applicable instead
31 * of those above. If you wish to allow use of your version of this file only
32 * under the terms of either the GPL or the LGPL, and not to allow others to
33 * use your version of this file under the terms of the MPL, indicate your
34 * decision by deleting the provisions above and replace them with the notice
35 * and other provisions required by the GPL or the LGPL. If you do not delete
36 * the provisions above, a recipient may use your version of this file under
37 * the terms of any one of the MPL, the GPL or the LGPL.
39 * ***** END LICENSE BLOCK ***** */
40 /* VerReg.h
41 * XP Version Registry functions
43 #ifndef _VERREG_H_
44 #define _VERREG_H_
46 #include "NSReg.h"
48 typedef struct _version
50 int32 major;
51 int32 minor;
52 int32 release;
53 int32 build;
54 int32 check;
55 } VERSION;
58 /* CreateRegistry flags */
59 #define CR_NEWREGISTRY 1
61 PR_BEGIN_EXTERN_C
62 /* ---------------------------------------------------------------------
63 * Version Registry Operations
64 * ---------------------------------------------------------------------
66 /* global registry operations */
67 /* VR_CreateRegistry is available only in the STANDALONE_REGISTRY builds */
68 VR_INTERFACE(REGERR) VR_CreateRegistry(char *installation, char *programPath, char *versionStr);
69 VR_INTERFACE(REGERR) VR_SetRegDirectory(const char *path);
70 VR_INTERFACE(REGERR) VR_PackRegistry(void *userData, nr_RegPackCallbackFunc pdCallbackFunction);
71 VR_INTERFACE(REGERR) VR_Close(void);
73 /* component-level functions */
74 VR_INTERFACE(REGERR) VR_Install(char *component_path, char *filepath, char *version, int bDirectory);
75 VR_INTERFACE(REGERR) VR_Remove(char *component_path);
76 VR_INTERFACE(REGERR) VR_InRegistry(char *path);
77 VR_INTERFACE(REGERR) VR_ValidateComponent(char *path);
78 VR_INTERFACE(REGERR) VR_Enum(char *component_path, REGENUM *state, char *buffer, uint32 buflen);
80 /* dealing with parts of individual components */
81 VR_INTERFACE(REGERR) VR_GetVersion(char *component_path, VERSION *result);
82 VR_INTERFACE(REGERR) VR_GetPath(char *component_path, uint32 sizebuf, char *buf);
83 VR_INTERFACE(REGERR) VR_SetRefCount(char *component_path, int refcount);
84 VR_INTERFACE(REGERR) VR_GetRefCount(char *component_path, int *result);
85 VR_INTERFACE(REGERR) VR_GetDefaultDirectory(char *component_path, uint32 sizebuf, char *buf);
86 VR_INTERFACE(REGERR) VR_SetDefaultDirectory(char *component_path, char *directory);
88 /* uninstall functions */
89 VR_INTERFACE(REGERR) VR_UninstallCreateNode(char *regPackageName, char *userPackageName);
90 VR_INTERFACE(REGERR) VR_UninstallAddFileToList(char *regPackageName, char *vrName);
91 VR_INTERFACE(REGERR) VR_UninstallFileExistsInList(char *regPackageName, char *vrName);
92 VR_INTERFACE(REGERR) VR_UninstallEnumSharedFiles(char *component_path, REGENUM *state, char *buffer, uint32 buflen);
93 VR_INTERFACE(REGERR) VR_UninstallDeleteFileFromList(char *component_path, char *vrName);
94 VR_INTERFACE(REGERR) VR_UninstallDeleteSharedFilesKey(char *regPackageName);
95 VR_INTERFACE(REGERR) VR_UninstallDestroy(char *regPackageName);
96 VR_INTERFACE(REGERR) VR_EnumUninstall(REGENUM *state, char* userPackageName,
97 int32 len1, char*regPackageName, int32 len2, PRBool bSharedList);
98 VR_INTERFACE(REGERR) VR_GetUninstallUserName(char *regPackageName, char *outbuf, uint32 buflen);
100 PR_END_EXTERN_C
102 #endif /* _VERREG_H_ */
104 /* EOF: VerReg.h */