From 754622e1c438470ef63ea65bd307ccad8b604898 Mon Sep 17 00:00:00 2001 From: "gergely.erdelyi" Date: Sun, 15 Jun 2008 16:07:51 +0000 Subject: [PATCH] segment.i: Added get_defsr() and set_defsr() --- swig/segment.i | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/swig/segment.i b/swig/segment.i index 79be4b9..5398965 100644 --- a/swig/segment.i +++ b/swig/segment.i @@ -27,3 +27,13 @@ %include "segment.hpp" +%inline %{ + sel_t get_defsr(segment_t *s, int reg) + { + return s->defsr[reg]; + } + void set_defsr(segment_t *s, int reg, sel_t value) + { + s->defsr[reg] = value; + } +%}