Add "video_encoder" resource for murphy's available resource list
[platform/core/multimedia/mmfw-sysconf.git] / mmfw-sysconf-target-tm1 / etc / murphy / murphy.lua
1 m = murphy.get()
2
3 -- load the dlog plugin
4 m:try_load_plugin('dlog')
5
6 -- load the console plugin
7 m:try_load_plugin('console')
8
9 -- load the dbus plugin
10 if m:plugin_exists('dbus') then
11     m:load_plugin('dbus')
12 end
13
14 -- load the native resource plugin
15 if m:plugin_exists('resource-native') then
16     m:load_plugin('resource-native')
17     m:info("native resource plugin loaded")
18 else
19     m:info("No native resource plugin found...")
20 end
21
22 -- load the dbus resource plugin
23 m:try_load_plugin('resource-dbus', {
24     dbus_bus = "system",
25     dbus_service = "org.Murphy",
26     dbus_track = true,
27     default_zone = "driver",
28     default_class = "implicit"
29 })
30
31 -- load the domain control plugin
32 if m:plugin_exists('domain-control') then
33     m:load_plugin('domain-control')
34 else
35     m:info("No domain-control plugin found...")
36 end
37
38 if m:plugin_exists('glib') then
39     m:load_plugin('glib')
40 else
41     m:info("No glib plugin found...")
42 end
43
44 -- define application classes
45 application_class {
46     name     = "interrupt",
47     priority = 99,
48     modal    = false,
49     share    = false,
50     order    = "fifo"
51 }
52
53 application_class {
54     name     = "media",
55     priority = 10,
56     modal    = false,
57     share    = false,
58     order    = "lifo"
59 }
60
61 -- define zone attributes
62 zone.attributes {
63     type = {mdb.string, "common", "rw"},
64     location = {mdb.string, "anywhere", "rw"}
65 }
66
67 -- define zones
68 zone {
69      name = "driver",
70      attributes = {
71          type = "common",
72          location = "front-left"
73      }
74 }
75
76 -- define resource classes
77 resource.class {
78      name = "video_overlay",
79      shareable = false,
80      sync_release = true
81 }
82
83 resource.class {
84      name = "video_decoder",
85      shareable = false,
86      sync_release = true
87 }
88
89 resource.class {
90      name = "video_encoder",
91      shareable = false,
92      sync_release = true
93 }
94
95 resource.class {
96      name = "camera",
97      shareable = false,
98      sync_release = true
99 }
100
101 resource.class {
102      name = "radio",
103      shareable = false,
104      sync_release = true
105 }