diff stream/stream.h @ 25690:7b66e1a132de

stream_info_t opts and protocols point to constant data as well.
author reimar
date Sun, 13 Jan 2008 12:09:29 +0000
parents f6c0bce13b17
children 4129c8cfa742
line wrap: on
line diff
--- a/stream/stream.h	Sun Jan 13 12:01:57 2008 +0000
+++ b/stream/stream.h	Sun Jan 13 12:09:29 2008 +0000
@@ -79,8 +79,8 @@
   /// opts is at least in it's defaults settings and may have been
   /// altered by url parsing if enabled and the options string parsing.
   int (*open)(struct stream_st* st, int mode, void* opts, int* file_format);
-  char* protocols[MAX_STREAM_PROTOCOLS];
-  void* opts;
+  const char* protocols[MAX_STREAM_PROTOCOLS];
+  const void* opts;
   int opts_url; /* If this is 1 we will parse the url as an option string
 		 * too. Otherwise options are only parsed from the
 		 * options string given to open_stream_plugin */