aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ioview.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ioview.h')
-rw-r--r--src/ioview.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ioview.h b/src/ioview.h
index 90b82b4..6a87b7b 100644
--- a/src/ioview.h
+++ b/src/ioview.h
@@ -18,6 +18,8 @@
#ifndef __IOVIEW_H
#define __IOVIEW_H
+#include <string.h>
+
#include <glib.h>
#include <glib/gstdio.h>
@@ -60,6 +62,12 @@ class IOView : public ViewCurrent {
{
g_unlink(filename);
}
+
+ gsize
+ get_size(void) const
+ {
+ return sizeof(*this) + strlen(filename) + 1;
+ }
};
public: