summaryrefslogtreecommitdiff
path: root/spuregion.c
diff options
context:
space:
mode:
authorChristian Gmeiner <christian.gmeiner@gmail.com>2009-09-22 00:51:47 +0200
committerChristian Gmeiner <christian.gmeiner@gmail.com>2009-09-22 00:51:47 +0200
commitec3c948a30852562051022fa6bd3dc48501af416 (patch)
tree62e48268525675d33bddf2218eae6d835b19339e /spuregion.c
parent2674ee01561d08865a99e25420cd6798227eaf42 (diff)
downloadvdr-plugin-dxr3-ec3c948a30852562051022fa6bd3dc48501af416.tar.gz
vdr-plugin-dxr3-ec3c948a30852562051022fa6bd3dc48501af416.tar.bz2
add method to write region information data and switch to a std::vector to hold regions
Diffstat (limited to 'spuregion.c')
-rw-r--r--spuregion.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/spuregion.c b/spuregion.c
index 4b25147..6055ec3 100644
--- a/spuregion.c
+++ b/spuregion.c
@@ -31,6 +31,14 @@ cSpuRegion::cSpuRegion() : startLine(0), endLine(0), usedSections(0)
memset(sections, 0, sizeof(sections));
}
+uint8_t cSpuRegion::openSections()
+{
+ // return the count of open sections.
+ // keep in mind that it will return usedSections + 1
+ // to allow easy for-looping like used in stl containers.
+ return usedSections + 1;
+}
+
bool cSpuRegion::addColIndex(tIndex idx)
{
sSection *sec = &sections[usedSections];