[all/resource] Add resource configuration file 16/45016/2 accepted/tizen/mobile/20150731.044717 accepted/tizen/tv/20150731.044740 accepted/tizen/wearable/20150731.045136 submit/tizen/20150731.022320
authorSangchul Lee <sc11.lee@samsung.com>
Thu, 30 Jul 2015 10:34:46 +0000 (19:34 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Thu, 30 Jul 2015 10:42:43 +0000 (19:42 +0900)
Change-Id: I5537a1a7909e06be8821dc7e44fa755f306bfac9

mmfw-sysconf-simulator/etc/murphy/murphy.lua [new file with mode: 0644]
mmfw-sysconf-target-n4/etc/murphy/murphy.lua [new file with mode: 0644]
mmfw-sysconf-target-u3/etc/murphy/murphy.lua [new file with mode: 0644]
packaging/mmfw-sysconf.spec

diff --git a/mmfw-sysconf-simulator/etc/murphy/murphy.lua b/mmfw-sysconf-simulator/etc/murphy/murphy.lua
new file mode 100644 (file)
index 0000000..1fae831
--- /dev/null
@@ -0,0 +1,84 @@
+m = murphy.get()
+
+-- load the console plugin
+m:try_load_plugin('console')
+
+-- load the dbus plugin
+if m:plugin_exists('dbus') then
+    m:load_plugin('dbus')
+end
+
+-- load the native resource plugin
+if m:plugin_exists('resource-native') then
+    m:load_plugin('resource-native')
+    m:info("native resource plugin loaded")
+else
+    m:info("No native resource plugin found...")
+end
+
+-- load the dbus resource plugin
+m:try_load_plugin('resource-dbus', {
+    dbus_bus = "system",
+    dbus_service = "org.Murphy",
+    dbus_track = true,
+    default_zone = "driver",
+    default_class = "implicit"
+})
+
+-- load the domain control plugin
+if m:plugin_exists('domain-control') then
+    m:load_plugin('domain-control')
+else
+    m:info("No domain-control plugin found...")
+end
+
+if m:plugin_exists('glib') then
+    m:load_plugin('glib')
+else
+    m:info("No glib plugin found...")
+end
+
+-- define application classes
+application_class {
+    name     = "interrupt",
+    priority = 99,
+    modal    = false,
+    share    = false,
+    order    = "fifo"
+}
+
+application_class {
+    name     = "media",
+    priority = 10,
+    modal    = false,
+    share    = false,
+    order    = "lifo"
+}
+
+-- define zone attributes
+zone.attributes {
+    type = {mdb.string, "common", "rw"},
+    location = {mdb.string, "anywhere", "rw"}
+}
+
+-- define zones
+zone {
+     name = "driver",
+     attributes = {
+         type = "common",
+         location = "front-left"
+     }
+}
+
+-- define resource classes
+resource.class {
+     name = "video_overlay",
+     shareable = false,
+     sync_release = true
+}
+
+resource.class {
+     name = "camera",
+     shareable = false,
+     sync_release = true
+}
diff --git a/mmfw-sysconf-target-n4/etc/murphy/murphy.lua b/mmfw-sysconf-target-n4/etc/murphy/murphy.lua
new file mode 100644 (file)
index 0000000..1fae831
--- /dev/null
@@ -0,0 +1,84 @@
+m = murphy.get()
+
+-- load the console plugin
+m:try_load_plugin('console')
+
+-- load the dbus plugin
+if m:plugin_exists('dbus') then
+    m:load_plugin('dbus')
+end
+
+-- load the native resource plugin
+if m:plugin_exists('resource-native') then
+    m:load_plugin('resource-native')
+    m:info("native resource plugin loaded")
+else
+    m:info("No native resource plugin found...")
+end
+
+-- load the dbus resource plugin
+m:try_load_plugin('resource-dbus', {
+    dbus_bus = "system",
+    dbus_service = "org.Murphy",
+    dbus_track = true,
+    default_zone = "driver",
+    default_class = "implicit"
+})
+
+-- load the domain control plugin
+if m:plugin_exists('domain-control') then
+    m:load_plugin('domain-control')
+else
+    m:info("No domain-control plugin found...")
+end
+
+if m:plugin_exists('glib') then
+    m:load_plugin('glib')
+else
+    m:info("No glib plugin found...")
+end
+
+-- define application classes
+application_class {
+    name     = "interrupt",
+    priority = 99,
+    modal    = false,
+    share    = false,
+    order    = "fifo"
+}
+
+application_class {
+    name     = "media",
+    priority = 10,
+    modal    = false,
+    share    = false,
+    order    = "lifo"
+}
+
+-- define zone attributes
+zone.attributes {
+    type = {mdb.string, "common", "rw"},
+    location = {mdb.string, "anywhere", "rw"}
+}
+
+-- define zones
+zone {
+     name = "driver",
+     attributes = {
+         type = "common",
+         location = "front-left"
+     }
+}
+
+-- define resource classes
+resource.class {
+     name = "video_overlay",
+     shareable = false,
+     sync_release = true
+}
+
+resource.class {
+     name = "camera",
+     shareable = false,
+     sync_release = true
+}
diff --git a/mmfw-sysconf-target-u3/etc/murphy/murphy.lua b/mmfw-sysconf-target-u3/etc/murphy/murphy.lua
new file mode 100644 (file)
index 0000000..1fae831
--- /dev/null
@@ -0,0 +1,84 @@
+m = murphy.get()
+
+-- load the console plugin
+m:try_load_plugin('console')
+
+-- load the dbus plugin
+if m:plugin_exists('dbus') then
+    m:load_plugin('dbus')
+end
+
+-- load the native resource plugin
+if m:plugin_exists('resource-native') then
+    m:load_plugin('resource-native')
+    m:info("native resource plugin loaded")
+else
+    m:info("No native resource plugin found...")
+end
+
+-- load the dbus resource plugin
+m:try_load_plugin('resource-dbus', {
+    dbus_bus = "system",
+    dbus_service = "org.Murphy",
+    dbus_track = true,
+    default_zone = "driver",
+    default_class = "implicit"
+})
+
+-- load the domain control plugin
+if m:plugin_exists('domain-control') then
+    m:load_plugin('domain-control')
+else
+    m:info("No domain-control plugin found...")
+end
+
+if m:plugin_exists('glib') then
+    m:load_plugin('glib')
+else
+    m:info("No glib plugin found...")
+end
+
+-- define application classes
+application_class {
+    name     = "interrupt",
+    priority = 99,
+    modal    = false,
+    share    = false,
+    order    = "fifo"
+}
+
+application_class {
+    name     = "media",
+    priority = 10,
+    modal    = false,
+    share    = false,
+    order    = "lifo"
+}
+
+-- define zone attributes
+zone.attributes {
+    type = {mdb.string, "common", "rw"},
+    location = {mdb.string, "anywhere", "rw"}
+}
+
+-- define zones
+zone {
+     name = "driver",
+     attributes = {
+         type = "common",
+         location = "front-left"
+     }
+}
+
+-- define resource classes
+resource.class {
+     name = "video_overlay",
+     shareable = false,
+     sync_release = true
+}
+
+resource.class {
+     name = "camera",
+     shareable = false,
+     sync_release = true
+}
index 02ae1c34f507a29ea6ebf2df22467fcb3cc2bd31..1ad7f90d3610a9a308f836ad57fa137ad35e3dba 100644 (file)
@@ -2,7 +2,7 @@
 
 Name:       mmfw-sysconf
 Summary:    Multimedia Framework system configuration package
-Version:    0.2.9
+Version:    0.2.10
 Release:    0
 Group:      Multimedia/Configuration
 License:    Apache-2.0
@@ -136,6 +136,7 @@ rm -rf %{_datadir}/mmfw-sysconf-simulator
 %defattr(-,root,root,-)
 %{_datadir}/mmfw-sysconf-target-u3/etc/asound.conf
 %{_datadir}/mmfw-sysconf-target-u3/etc/pulse/*
+%{_datadir}/mmfw-sysconf-target-u3/etc/murphy/*
 %{_datadir}/mmfw-sysconf-target-u3/etc/profile.d/*
 %{_datadir}/mmfw-sysconf-target-u3/usr/etc/*.ini
 %{_datadir}/mmfw-sysconf-target-u3/usr/etc/gst-openmax.conf
@@ -150,6 +151,7 @@ rm -rf %{_datadir}/mmfw-sysconf-simulator
 %defattr(-,root,root,-)
 %{_datadir}/mmfw-sysconf-target-n4/etc/asound.conf
 %{_datadir}/mmfw-sysconf-target-n4/etc/pulse/*
+%{_datadir}/mmfw-sysconf-target-n4/etc/murphy/*
 %{_datadir}/mmfw-sysconf-target-n4/etc/profile.d/*
 %{_datadir}/mmfw-sysconf-target-n4/usr/etc/*.ini
 %{_datadir}/mmfw-sysconf-target-n4/usr/etc/gst-openmax.conf
@@ -166,6 +168,7 @@ rm -rf %{_datadir}/mmfw-sysconf-simulator
 %defattr(-,root,root,-)
 %{_datadir}/mmfw-sysconf-simulator/etc/asound.conf
 %{_datadir}/mmfw-sysconf-simulator/etc/pulse/*
+%{_datadir}/mmfw-sysconf-simulator/etc/murphy/*
 %{_datadir}/mmfw-sysconf-simulator/etc/profile.d/*
 %{_datadir}/mmfw-sysconf-simulator/usr/etc/*.ini
 %{_datadir}/mmfw-sysconf-simulator/usr/etc/gst-openmax.conf