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