Implemented Unix startup code, argument parsing, and platform-dependent functions
[rodin/chimara.git] / libchimara / stream.c
index 4a1e004cfad42e9235b5a239efb62cd88617ca14..3d7262596011a26541dfaa9171cb46e398320346 100644 (file)
@@ -277,7 +277,7 @@ glk_stream_open_memory_uni(glui32 *buf, glui32 buflen, glui32 fmode, glui32 rock
 }
 
 /* Internal function: create a stream using the given parameters. */
-static strid_t
+strid_t
 file_stream_new(frefid_t fileref, glui32 fmode, glui32 rock, gboolean unicode)
 {
        VALID_FILEREF(fileref, return NULL);
@@ -476,12 +476,3 @@ stream_close_common(strid_t str, stream_result_t *result)
        str->magic = MAGIC_FREE;
        g_free(str);
 }
-
-strid_t
-glkunix_stream_open_pathname(char *pathname, glui32 usage, glui32 rock)
-{
-       printf("making new fileref: %s\n", pathname);
-       frefid_t fileref = fileref_new(pathname, rock, usage, filemode_ReadWrite);
-       printf("makeing new stream:\n");
-       return file_stream_new(fileref, filemode_ReadWrite, rock, FALSE);
-}