summaryrefslogtreecommitdiffstatshomepage
path: root/py/obj.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-04-08 23:11:51 +0100
committerDamien George <damien.p.george@gmail.com>2014-04-08 23:11:51 +0100
commit803b9263ab1049d19d62d9a09e5f82084b7afa41 (patch)
tree1f97f3f4a1fabea34327d1af4db520a348f29dbe /py/obj.h
parenteec91057b827013a3e02c51b60e46c8597295132 (diff)
parenta985b4593d3f0c788c5e6ef0066bf82ae550cfb8 (diff)
downloadmicropython-803b9263ab1049d19d62d9a09e5f82084b7afa41.tar.gz
micropython-803b9263ab1049d19d62d9a09e5f82084b7afa41.zip
Merge branch 'master' of github.com:micropython/micropython
Diffstat (limited to 'py/obj.h')
-rw-r--r--py/obj.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/py/obj.h b/py/obj.h
index 92dd6a8a0b..ab1685d4d0 100644
--- a/py/obj.h
+++ b/py/obj.h
@@ -196,6 +196,8 @@ typedef struct _buffer_info_t {
typedef struct _mp_buffer_p_t {
machine_int_t (*get_buffer)(mp_obj_t obj, buffer_info_t *bufinfo, int flags);
} mp_buffer_p_t;
+bool mp_get_buffer(mp_obj_t obj, buffer_info_t *bufinfo);
+void mp_get_buffer_raise(mp_obj_t obj, buffer_info_t *bufinfo);
// Stream protocol
typedef struct _mp_stream_p_t {