From f5cdf5e89d379195f7abbf04d984e4b8958ad679 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Sat, 6 Jun 2015 22:23:58 +0300 Subject: [PATCH] ffilib: Add libc() convenience function to load libc. --- ffilib/ffilib.py | 3 +++ ffilib/metadata.txt | 2 +- ffilib/setup.py | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ffilib/ffilib.py b/ffilib/ffilib.py index df9222ca..5def0d5b 100644 --- a/ffilib/ffilib.py +++ b/ffilib/ffilib.py @@ -27,3 +27,6 @@ def open(name, maxver=10, extra=()): except OSError as e: err = e raise err + +def libc(): + return open("libc", 6) diff --git a/ffilib/metadata.txt b/ffilib/metadata.txt index aeaccb0b..2f814e90 100644 --- a/ffilib/metadata.txt +++ b/ffilib/metadata.txt @@ -1,7 +1,7 @@ dist_name = ffilib srctype = micropython-lib type = module -version = 0.1.0 +version = 0.1.1 author = Damien George desc = MicroPython FFI helper module long_desc = MicroPython FFI helper module to easily interface with underlying shared libraries diff --git a/ffilib/setup.py b/ffilib/setup.py index eb83f4ac..21689882 100644 --- a/ffilib/setup.py +++ b/ffilib/setup.py @@ -6,7 +6,7 @@ from setuptools import setup setup(name='micropython-ffilib', - version='0.1.0', + version='0.1.1', description='MicroPython FFI helper module', long_description='MicroPython FFI helper module to easily interface with underlying shared libraries', url='https://github.com/micropython/micropython/issues/405',