summaryrefslogtreecommitdiff
path: root/portato/eix/libeix.pyx
diff options
context:
space:
mode:
Diffstat (limited to 'portato/eix/libeix.pyx')
-rw-r--r--portato/eix/libeix.pyx14
1 files changed, 14 insertions, 0 deletions
diff --git a/portato/eix/libeix.pyx b/portato/eix/libeix.pyx
new file mode 100644
index 0000000..2b3ebb0
--- /dev/null
+++ b/portato/eix/libeix.pyx
@@ -0,0 +1,14 @@
+from portato.eix.eix_utils cimport File, fopen, fclose, ffree, fget
+
+def test (f):
+ cdef File* cf
+ cdef char* buf
+
+ print "Trying to open: ", f
+ cf = fopen(f, "r")
+ try:
+ buf = fget(cf, 20)
+ print "The first two chars:", buf[0], buf[1]
+ ffree(buf)
+ finally:
+ fclose(cf)
tr> 2013-06-06i3: unify scripts into oneRené 'Necoro' Neumann6-49/+1771 2013-06-06i3: new temporary workspaceRené Neumann2-1/+27 2013-06-06Allow 'klass' in i3.py descriptionsRené Neumann1-0/+4 2013-06-04i3: rename workspaceRené Neumann1-0/+3 2013-06-03Some more greek chars / math product and sumRené 'Necoro' Neumann1-0/+6 2013-06-02Fix rules in i3-config. Somehow 'set' expands variables twice :-/René Neumann1-14/+11 2013-06-01Overhaul xlock.shRené 'Necoro' Neumann1-4/+8 2013-06-01Better workspace chooserRené 'Necoro' Neumann3-2/+581 2013-06-01FF/TB/Pidgin stuffRené 'Necoro' Neumann1-26/+45 2013-06-01More i3René 'Necoro' Neumann1-2/+11 2013-06-01FixesRené 'Necoro' Neumann2-2/+2