Compile Python 2 and Python 3 versions of the plugin.
This commit is contained in:
parent
8389ff205e
commit
3637d72126
12 changed files with 2187 additions and 8 deletions
43
0009-nbdkit-Talk-about-Python-in-the-Python-plugin.patch
Normal file
43
0009-nbdkit-Talk-about-Python-in-the-Python-plugin.patch
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
From 90e5af07e54ce77f8b9d7b20af52306ea2b12c6e Mon Sep 17 00:00:00 2001
|
||||
From: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
|
||||
Date: Mon, 26 Sep 2016 17:14:37 +0200
|
||||
Subject: [PATCH 09/11] nbdkit: Talk about Python in the Python plugin
|
||||
|
||||
---
|
||||
plugins/python/python.c | 6 +++---
|
||||
1 file changed, 3 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/plugins/python/python.c b/plugins/python/python.c
|
||||
index a59d11e..fcbb9f2 100644
|
||||
--- a/plugins/python/python.c
|
||||
+++ b/plugins/python/python.c
|
||||
@@ -437,7 +437,7 @@ py_can_write (void *handle)
|
||||
Py_DECREF (r);
|
||||
return ret;
|
||||
}
|
||||
- /* No Perl can_write callback, but there's a Perl pwrite callback
|
||||
+ /* No Python can_write callback, but there's a Python pwrite callback
|
||||
* defined, so return 1. (In C modules, nbdkit would do this).
|
||||
*/
|
||||
else if (callback_defined ("pwrite", NULL))
|
||||
@@ -470,7 +470,7 @@ py_can_flush (void *handle)
|
||||
Py_DECREF (r);
|
||||
return ret;
|
||||
}
|
||||
- /* No Perl can_flush callback, but there's a Perl flush callback
|
||||
+ /* No Python can_flush callback, but there's a Python flush callback
|
||||
* defined, so return 1. (In C modules, nbdkit would do this).
|
||||
*/
|
||||
else if (callback_defined ("flush", NULL))
|
||||
@@ -531,7 +531,7 @@ py_can_trim (void *handle)
|
||||
Py_DECREF (r);
|
||||
return ret;
|
||||
}
|
||||
- /* No Perl can_trim callback, but there's a Perl trim callback
|
||||
+ /* No Python can_trim callback, but there's a Python trim callback
|
||||
* defined, so return 1. (In C modules, nbdkit would do this).
|
||||
*/
|
||||
else if (callback_defined ("trim", NULL))
|
||||
--
|
||||
2.7.4
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue