Changeset: fdb535e7e4cc for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=fdb535e7e4cc
Modified Files:
        monetdb5/mal/mal_http_daemon.c
        monetdb5/mal/mal_private.h
Branch: default
Log Message:

mal_http_daemon: provide dummy implementations

Since the API for this file is statically defined no matter what, make
sure the symbols are available as well, no matter what.


diffs (46 lines):

diff --git a/monetdb5/mal/mal_http_daemon.c b/monetdb5/mal/mal_http_daemon.c
--- a/monetdb5/mal/mal_http_daemon.c
+++ b/monetdb5/mal/mal_http_daemon.c
@@ -277,4 +277,31 @@ void stopHttpdaemon(void){
                MT_join_thread(hdthread);
 }
 
+#else
+
+#include "mal.h"
+#include "mal_exception.h"
+#include "mal_private.h"
+#include "mal_http_daemon.h"
+
+/* dummy noop functions to implement the exported API, if these had been
+ * defined to return a str, we could have informed the caller no
+ * implementation was available */
+
+void
+register_http_handler(http_request_handler handler)
+{
+       (void)handler;
+}
+
+void
+startHttpdaemon(void)
+{
+}
+
+void
+stopHttpdaemon(void)
+{
+}
+
 #endif
diff --git a/monetdb5/mal/mal_private.h b/monetdb5/mal/mal_private.h
--- a/monetdb5/mal/mal_private.h
+++ b/monetdb5/mal/mal_private.h
@@ -92,6 +92,7 @@ extern void malGarbageCollector(MalBlkPt
 extern void listFunction(stream *fd, MalBlkPtr mb, MalStkPtr stk, int flg, int 
first, int step)
        __attribute__((__visibility__("hidden")));
 
+/* mal_http_daemon.h */
 extern void startHttpdaemon(void)
        __attribute__((__visibility__("hidden")));
 extern void stopHttpdaemon(void)
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to