diff options
Diffstat (limited to 'qbuffers.h')
-rw-r--r-- | qbuffers.h | 16 |
1 files changed, 15 insertions, 1 deletions
@@ -50,6 +50,12 @@ public: g_free(filename); } + inline Buffer * + next(void) + { + return LIST_NEXT(this, buffers); + } + inline void set_filename(const gchar *filename) { @@ -82,15 +88,22 @@ public: extern class Ring { LIST_HEAD(Head, Buffer) head; - Buffer *current; public: + Buffer *current; + Ring() : current(NULL) { LIST_INIT(&head); } ~Ring(); + inline Buffer * + first(void) + { + return LIST_FIRST(&head); + } + Buffer *find(const gchar *filename); bool edit(const gchar *filename); @@ -119,6 +132,7 @@ class StateFile : public StateExpectString { private: void do_edit(const gchar *filename); + void initial(void); State *done(const gchar *str); }; |