aboutsummaryrefslogtreecommitdiff
path: root/lib/gtk-experiment-widgets/gtk-experiment-transcript.h
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2012-08-06 16:39:03 +0200
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2012-08-06 16:39:03 +0200
commit9e6bb604f1efaf491fa8998d8965b11669b1373c (patch)
tree3a573fcb9c441ce521f372fd631a9e280588142c /lib/gtk-experiment-widgets/gtk-experiment-transcript.h
parent68e1ac4617108bb99b848bb1ccb1b55451f5b91b (diff)
downloadgtk-vlc-player-9e6bb604f1efaf491fa8998d8965b11669b1373c.tar.gz
when parsing a format file, check whether each line could be read completely, otherwise throw error
* arbitrary limit (1024 bytes) per line - reading lines of arbritrary length is difficult and will be seldomly used * introduced is_newline() helper function
Diffstat (limited to 'lib/gtk-experiment-widgets/gtk-experiment-transcript.h')
-rw-r--r--lib/gtk-experiment-widgets/gtk-experiment-transcript.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/gtk-experiment-widgets/gtk-experiment-transcript.h b/lib/gtk-experiment-widgets/gtk-experiment-transcript.h
index 7def2ef..7fb1ba4 100644
--- a/lib/gtk-experiment-widgets/gtk-experiment-transcript.h
+++ b/lib/gtk-experiment-widgets/gtk-experiment-transcript.h
@@ -41,7 +41,8 @@ G_BEGIN_DECLS
/** \e GtkExperimentTranscript error codes */
typedef enum {
GTK_EXPERIMENT_TRANSCRIPT_ERROR_FILEOPEN, /**< Error opening file */
- GTK_EXPERIMENT_TRANSCRIPT_ERROR_REGEXCAPTURES /**< Additional regular expression captures used */
+ GTK_EXPERIMENT_TRANSCRIPT_ERROR_REGEXCAPTURES, /**< Additional regular expression captures used */
+ GTK_EXPERIMENT_TRANSCRIPT_ERROR_LINELENGTH /**< Line read is too long */
} GtkExperimentTranscriptError;
/** \e GtkExperimentTranscript type */