mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-31 13:24:13 +02:00
new function for file input. rewind the filedescriptor to the current
Tue Oct 27 07:25:53 1998 Tim Janik <timj@gtk.org> * glib.h: * gscanner.c: (g_scanner_sync_file_offset): new function for file input. rewind the filedescriptor to the current buffer position and blow the file read ahead buffer. usefull for third party uses of our filedescriptor, which hooks onto the current scanning position. (this became neccessary with the implementation of buffered reads). (g_scanner_input_file): (g_scanner_input_text): automatically blow the read ahead buffer. (g_scanner_get_char): blow the read ahead buffer when the end of input is reached, i.e. a '\000' char is read.
This commit is contained in:
1
glib.h
1
glib.h
@@ -2085,6 +2085,7 @@ GScanner* g_scanner_new (GScannerConfig *config_templ);
|
||||
void g_scanner_destroy (GScanner *scanner);
|
||||
void g_scanner_input_file (GScanner *scanner,
|
||||
gint input_fd);
|
||||
void g_scanner_sync_file_offset (GScanner *scanner);
|
||||
void g_scanner_input_text (GScanner *scanner,
|
||||
const gchar *text,
|
||||
guint text_len);
|
||||
|
Reference in New Issue
Block a user