Changeset: 7c66f82e95a7 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/7c66f82e95a7
Added Files:
        common/stream/mapi_stream.c
Modified Files:
        common/stream/CMakeLists.txt
        common/stream/stream.h
Branch: default
Log Message:

Add mapi_request_upload stub to streams library


diffs (56 lines):

diff --git a/common/stream/CMakeLists.txt b/common/stream/CMakeLists.txt
--- a/common/stream/CMakeLists.txt
+++ b/common/stream/CMakeLists.txt
@@ -30,6 +30,7 @@ target_sources(stream
   lz4_stream.c
   url_stream.c
   socket_stream.c
+  mapi_stream.c
   memio.c
   callback.c
   blackhole.c
diff --git a/common/stream/mapi_stream.c b/common/stream/mapi_stream.c
new file mode 100644
--- /dev/null
+++ b/common/stream/mapi_stream.c
@@ -0,0 +1,28 @@
+/*
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0.  If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * Copyright 1997 - July 2008 CWI, August 2008 - 2022 MonetDB B.V.
+ */
+
+#include "monetdb_config.h"
+#include "stream.h"
+#include "stream_internal.h"
+
+struct mapi_recv_upload {
+       stream *from_client; // set to NULL after sending MAPI_PROMPT3
+       stream *to_client; // set to NULL when client sends empty
+};
+
+
+
+
+stream*
+mapi_request_upload(const char *filename, bool binary, stream *from, stream 
*to)
+{
+       (void)from; (void)to; (void)binary;
+       mnstr_set_open_error(filename, 0, "ON CLIENT not supported yet");
+       return NULL;
+}
+
diff --git a/common/stream/stream.h b/common/stream/stream.h
--- a/common/stream/stream.h
+++ b/common/stream/stream.h
@@ -222,6 +222,8 @@ stream_export stream *bs_stream(stream *
 stream_export void set_prompting(stream *block_stream, const char *prompt, 
stream *prompt_stream);
 
 
+stream_export stream *mapi_request_upload(const char *filename, bool binary, 
stream *from, stream *to);
+
 typedef enum {
        PROTOCOL_AUTO = 0, // unused
        PROTOCOL_9 = 1, // mal_mapi.c, mal_client.c;
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to