Merge branch 'tizen_3.0' into tizen for sync
[apps/native/boot-animation.git] / include / boot.h
1 /*
2  * Copyright (c) 2009-2015 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */
17
18 #ifndef PREFIX
19 #define PREFIX "/usr"
20 #endif
21
22 #define FILE_PATH PREFIX"/share/edje/"
23 #define DEFAULT_ON PREFIX"/share/edje/720x1280_PowerOn.edj"
24 #define DEFAULT_OFF PREFIX"/share/edje/720x1280_PowerOff.edj"
25 #define GRP_OFF "poweroff"
26 #define GRP_ON "poweron"
27
28 #ifdef ARM_TYPE
29 #define DEFAULT_POWERON_WAV             PREFIX"/share/keysound/poweron.ogg"
30 #define DEFAULT_POWEROFF_WAV    PREFIX"/share/keysound/poweroff.ogg"
31
32 #define POWERON_WAV             "poweron.ogg"
33 #define POWEROFF_WAV    "poweroff.ogg"
34 #else
35 #define DEFAULT_POWERON_WAV             PREFIX"/share/keysound/poweron.wav"
36 #define DEFAULT_POWEROFF_WAV    PREFIX"/share/keysound/poweroff.wav"
37
38 #define POWERON_WAV             "poweron.wav"
39 #define POWEROFF_WAV    "poweroff.wav"
40 #endif
41
42
43 #define NICE_VALUE -20
44 #define FILE_PATH_MAX 128
45
46 enum {
47         TYPE_UNKNOWN,
48         TYPE_ON,
49         TYPE_OFF,
50         TYPE_OFF_NOEXIT,
51         TYPE_OFF_WITH_MSG,
52         TYPE_CLEAR,
53         TYPE_MAX
54 };
55
56 enum {
57         TYPE_CHECK_ANI,
58         TYPE_CHECK_SOUND,
59 };