celix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [celix] pnoltes commented on a change in pull request #223: Feature/pubsub custom serializers
Date Mon, 18 May 2020 07:18:48 GMT

pnoltes commented on a change in pull request #223:
URL: https://github.com/apache/celix/pull/223#discussion_r426414542

File path: bundles/pubsub/pubsub_serializer_avrobin/src/pubsub_avrobin_serialization_provider.c
@@ -0,0 +1,120 @@
+ *Licensed to the Apache Software Foundation (ASF) under one
+ *or more contributor license agreements.  See the NOTICE file
+ *distributed with this work for additional information
+ *regarding copyright ownership.  The ASF licenses this file
+ *to you under the Apache License, Version 2.0 (the
+ *"License"); you may not use this file except in compliance
+ *with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *Unless required by applicable law or agreed to in writing,
+ *software distributed under the License is distributed on an
+ * KIND, either express or implied.  See the License for the
+ *specific language governing permissions and limitations
+ *under the License.
+ */
+#include "pubsub_avrobin_serialization_provider.h"
+#include <stdlib.h>
+#include <stdarg.h>
+#include <string.h>
+#include <assert.h>
+#include "avrobin_serializer.h"
+#include "dyn_message.h"
+#include "celix_log_helper.h"
+#include "pubsub_message_serialization_service.h"
+static void dfi_log(void *handle, int level, const char *file, int line, const char *msg,
...) {
+    va_list ap;
+    celix_log_helper_t *log = handle;
+    char *logStr = NULL;
+    va_start(ap, msg);
+    vasprintf(&logStr, msg, ap);
+    va_end(ap);
+    celix_logHelper_log(log, level, "FILE:%s, LINE:%i, MSG:%s", file, line, logStr);
+    free(logStr);
+static celix_status_t pubsub_avrobinSerializationProvider_serialize(pubsub_serialization_entry_t*
entry, const void* msg, struct iovec** output, size_t* outputIovLen) {

Review comment:
       Yes, for the current serialization (avrobin/json) outputIovLen is not used

This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:

View raw message