Browse Source

Temporary remove bad interface in order to restructure #246

bel 8 năm trước cách đây
mục cha
commit
2857c85d12
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      include/civetweb.h

+ 4 - 0
include/civetweb.h

@@ -176,6 +176,9 @@ struct mg_callbacks {
 	   mg_set_websocket_handler instead. */
 	void (*connection_close)(const struct mg_connection *);
 
+#if 0 /* This interface is a part of the problem causing #246 and others.
+         It will be replaced. */
+
 	/* Called when civetweb tries to open a file. Used to intercept file open
 	   calls, and serve file data from memory instead.
 	   Parameters:
@@ -189,6 +192,7 @@ struct mg_callbacks {
 	const char *(*open_file)(const struct mg_connection *,
 	                         const char *path,
 	                         size_t *data_len);
+#endif
 
 	/* Called when civetweb is about to serve Lua server page, if
 	   Lua support is enabled.