xref: /haiku/headers/os/package/WritableFileUpdateType.h (revision 9f81ca838ce7b92b5689e57d3f86765db4705a7b)
1*4489c88bSIngo Weinhold /*
2*4489c88bSIngo Weinhold  * Copyright 2013, Haiku, Inc.
3*4489c88bSIngo Weinhold  * Distributed under the terms of the MIT License.
4*4489c88bSIngo Weinhold  */
5*4489c88bSIngo Weinhold #ifndef _PACKAGE__WRITABLE_FILE_UPDATE_TYPE_H_
6*4489c88bSIngo Weinhold #define _PACKAGE__WRITABLE_FILE_UPDATE_TYPE_H_
7*4489c88bSIngo Weinhold 
8*4489c88bSIngo Weinhold 
9*4489c88bSIngo Weinhold #include <String.h>
10*4489c88bSIngo Weinhold 
11*4489c88bSIngo Weinhold 
12*4489c88bSIngo Weinhold namespace BPackageKit {
13*4489c88bSIngo Weinhold 
14*4489c88bSIngo Weinhold 
15*4489c88bSIngo Weinhold // global writable file update types -- specifies behavior in case the previous
16*4489c88bSIngo Weinhold // version of a writable file provided by a package has been changed by the
17*4489c88bSIngo Weinhold // user.
18*4489c88bSIngo Weinhold enum BWritableFileUpdateType {
19*4489c88bSIngo Weinhold 	B_WRITABLE_FILE_UPDATE_TYPE_KEEP_OLD	= 0,
20*4489c88bSIngo Weinhold 		// the old writable file can be kept
21*4489c88bSIngo Weinhold 	B_WRITABLE_FILE_UPDATE_TYPE_MANUAL		= 1,
22*4489c88bSIngo Weinhold 		// the old writable file needs to be updated manually
23*4489c88bSIngo Weinhold 	B_WRITABLE_FILE_UPDATE_TYPE_AUTO_MERGE	= 2,
24*4489c88bSIngo Weinhold 		// try a three-way merge
25*4489c88bSIngo Weinhold 
26*4489c88bSIngo Weinhold 	B_WRITABLE_FILE_UPDATE_TYPE_ENUM_COUNT,
27*4489c88bSIngo Weinhold 
28*4489c88bSIngo Weinhold 	B_WRITABLE_FILE_UPDATE_TYPE_DEFAULT = B_WRITABLE_FILE_UPDATE_TYPE_KEEP_OLD
29*4489c88bSIngo Weinhold };
30*4489c88bSIngo Weinhold 
31*4489c88bSIngo Weinhold 
32*4489c88bSIngo Weinhold }	// namespace BPackageKit
33*4489c88bSIngo Weinhold 
34*4489c88bSIngo Weinhold 
35*4489c88bSIngo Weinhold #endif	// _PACKAGE__WRITABLE_FILE_UPDATE_TYPE_H_
36