summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorJens Georg <mail@jensge.org>2014-09-28 17:40:09 +0200
committerJens Georg <mail@jensge.org>2014-09-28 17:41:45 +0200
commitb39d0f8bd8ea5008c0127ae3865c8efe095ad9bb (patch)
tree51183aa8462fb3c99fd382e962bb2c3bab1808ab /examples
parent8cee4d046af54b0fcfda0093be12318098d86775 (diff)
downloadrygel-b39d0f8bd8ea5008c0127ae3865c8efe095ad9bb.tar.gz
examples: Set license of GI examples to BSD
Signed-off-by: Jens Georg <mail@jensge.org>
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/gi/example-renderer.py27
-rwxr-xr-xexamples/gi/example-server.py26
2 files changed, 52 insertions, 1 deletions
diff --git a/examples/gi/example-renderer.py b/examples/gi/example-renderer.py
index 69036a95..6d97f919 100755
--- a/examples/gi/example-renderer.py
+++ b/examples/gi/example-renderer.py
@@ -1,4 +1,30 @@
#!/usr/bin/env python
+#
+# Copyright (c) 2014, Jens Georg <mail@jensge.org>
+#
+# All rights reserved.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions are met:
+#
+# 1. Redistributions of source code must retain the above copyright notice, this
+# list of conditions and the following disclaimer.
+#
+# 2. Redistributions in binary form must reproduce the above copyright notice,
+# this list of conditions and the following disclaimer in the documentation
+# and/or other materials provided with the distribution.
+#
+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
+# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+# OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
+# DAMAGE.
from gi.repository import RygelCore as rc
from gi.repository import RygelRenderer as rr
@@ -39,7 +65,6 @@ class ExamplePlayer(GObject.Object, rr.MediaPlayer):
def do_get_mime_types(self):
val = ["image/jpeg"]
- print ("Mime types: ", val)
return val, len(val)
# Property setters/getters
diff --git a/examples/gi/example-server.py b/examples/gi/example-server.py
index 86b28f94..54ae4534 100755
--- a/examples/gi/example-server.py
+++ b/examples/gi/example-server.py
@@ -1,4 +1,30 @@
#!/usr/bin/env python
+#
+# Copyright (c) 2014, Jens Georg <mail@jensge.org>
+#
+# All rights reserved.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions are met:
+#
+# 1. Redistributions of source code must retain the above copyright notice, this
+# list of conditions and the following disclaimer.
+#
+# 2. Redistributions in binary form must reproduce the above copyright notice,
+# this list of conditions and the following disclaimer in the documentation
+# and/or other materials provided with the distribution.
+#
+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
+# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+# OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
+# DAMAGE.
from gi.repository import GObject
from gi.repository import RygelCore as rc