X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=libchimara%2Fglkunix.c;h=83d89896e1a4179518d7f04691fcd80c9cecbc22;hb=70e7bb0de0350124f520f6d275b0ea2ae2b763ae;hp=704ac0c8acba757550cd38488d3d09a639983b78;hpb=db8dde85ef01518d74df205d083ba1fb501b21c9;p=rodin%2Fchimara.git diff --git a/libchimara/glkunix.c b/libchimara/glkunix.c index 704ac0c..83d8989 100644 --- a/libchimara/glkunix.c +++ b/libchimara/glkunix.c @@ -12,7 +12,7 @@ extern GPrivate *glk_data_key; /** * glkunix_stream_open_pathname: * @pathname: A path to a file, in the system filename encoding. - * @usage: Bitfield with one or more of the fileusage_ constants. + * @textmode: Bitfield with one or more of the fileusage_ constants. * @rock: The new stream's rock value. * * Opens an arbitrary file, in read-only mode. Note that this function is @@ -23,7 +23,7 @@ extern GPrivate *glk_data_key; * Returns: A new stream, or %NULL if the file operation failed. */ strid_t -glkunix_stream_open_pathname(char *pathname, glui32 usage, glui32 rock) +glkunix_stream_open_pathname(char *pathname, glui32 textmode, glui32 rock) { ChimaraGlkPrivate *glk_data = g_private_get(glk_data_key); @@ -34,7 +34,7 @@ glkunix_stream_open_pathname(char *pathname, glui32 usage, glui32 rock) g_return_val_if_fail(pathname, NULL); g_return_val_if_fail(strlen(pathname) > 0, NULL); - frefid_t fileref = fileref_new(pathname, rock, usage, filemode_Read); + frefid_t fileref = fileref_new(pathname, rock, textmode, filemode_Read); return file_stream_new(fileref, filemode_Read, rock, FALSE); }