]> git.tdb.fi Git - r2c2.git/blobdiff - source/libr2c2/blockallocator.h
Put signal_advanced in BlockAllocator
[r2c2.git] / source / libr2c2 / blockallocator.h
index ba939f7e2be6139bfcd219ad9b2b85b230958e98..6ba3cfbb7559ca7e718b2471cd9fca952fec44ce 100644 (file)
@@ -27,6 +27,8 @@ public:
                void hint(unsigned);
        };
 
+       sigc::signal<void, Block &> signal_advanced;
+
 private:
        struct BlockMatch;
 
@@ -48,7 +50,7 @@ public:
        void set_active(bool);
        bool is_active() const { return active; }
 
-       void start_from(const BlockIter &);
+       bool start_from(const BlockIter &);
        void rewind_to(const Block &);
        void clear();
        bool empty() const { return blocks.empty(); }
@@ -65,7 +67,7 @@ public:
 private:
        void reserve_more();
        bool reserve_block(const BlockIter &);
-       void advance_front(const Block *);
+       void advance_front(const Block *, bool);
        void advance_front(const Sensor *);
        void advance_back();
        void release_blocks_begin(const BlockList::iterator &);