summaryrefslogtreecommitdiff
path: root/src/lib/efl/interfaces/efl_types.eot
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2016-06-29 11:49:24 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2016-06-29 15:01:34 +0900
commit45cd0465a49590f8b459e5d2cc340d42467cfecf (patch)
tree47611b004162d1102035cd009abdc5d557273922 /src/lib/efl/interfaces/efl_types.eot
parenta73e51136f019f24c331529f87edf9c57b04b7dc (diff)
efl: Add Efl.Version struct and APIs
The original idea behind knowing the app's version of EFL is not a great story. It comes from the fact that some bugs exist in earlier versions of EFL, and some things need to be fixed. But those fixes may break behaviour for older apps. This patch is opening the way to the slippery slope of bug compatibility. Unfortunately this is a requirement if we want to be able to move forward and not break apps when we fix bugs (behaviour or ABI). I hope we will not need to implement too many (if any) workaround such issues. For now, this will only be used as debugging info. EFL_MAIN() and ELM_MAIN() will both set the app's EFL version automatically at startup time. Some internal helpers can be added later to check how the app build-time and run-time version of EFL differ. @feature
Diffstat (limited to 'src/lib/efl/interfaces/efl_types.eot')
-rw-r--r--src/lib/efl/interfaces/efl_types.eot20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/lib/efl/interfaces/efl_types.eot b/src/lib/efl/interfaces/efl_types.eot
index dd6d08c04b..0625dc3c65 100644
--- a/src/lib/efl/interfaces/efl_types.eot
+++ b/src/lib/efl/interfaces/efl_types.eot
@@ -18,3 +18,23 @@ struct @extern Efl.Time
18 tm_yday: int; [[Days in year.[0-365] ]] 18 tm_yday: int; [[Days in year.[0-365] ]]
19 tm_isdst: int; [[DST. [-1/0/1] ]] 19 tm_isdst: int; [[DST. [-1/0/1] ]]
20} 20}
21
22struct Efl.Version
23{
24 [[This type describes the version of EFL with an optional variant.
25
26 This may be used to query the current running version of EFL. Or it can
27 be passed by applications at startup time to inform EFL of the version
28 a certain application was built for.
29
30 @since 1.18
31 ]]
32
33 major: int; [[Major component of the version (>= 1).]]
34 minor: int; [[Minor component of the version (>= 0).]]
35 micro: int; [[Micro component of the version (>= 0).]]
36 revision: int; [[Revision component of the version (>= 0).]]
37 flavor: string; [[Special version string for this build of EFL, $null for
38 vanilla (upstream) EFL. Contains $EFL_VERSION_FLAVOR.]]
39 build_id: string; [[Contains $EFL_BUILD_ID.]]
40}