Code

amqp plugin: Adapt to the new syntax of "format_json_value_list".
authorFlorian Forster <octo@leeloo.lan.home.verplant.org>
Wed, 4 Aug 2010 15:59:31 +0000 (17:59 +0200)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Wed, 4 Aug 2010 15:59:31 +0000 (17:59 +0200)
src/amqp.c

index 1767b85f8f8e3660482a7988a1015c894e0a5b0b..55066351ab0b1332c2cef698438d463f81dd4f8d 100644 (file)
@@ -144,7 +144,9 @@ static int amqp_write(const data_set_t *ds, const value_list_t *vl, user_data_t
     bfree = sizeof(buffer);
     bfill = 0;
     format_json_initialize(buffer, &bfill, &bfree);
-    format_json_value_list(buffer, &bfill, &bfree, ds, vl);
+    /* TODO: Possibly add a config option "StoreRates" and pass the value along here. */
+    format_json_value_list(buffer, &bfill, &bfree, ds, vl,
+            /* rates = */ 0);
     format_json_finalize(buffer, &bfill, &bfree);
     props._flags = AMQP_BASIC_CONTENT_TYPE_FLAG | AMQP_BASIC_DELIVERY_MODE_FLAG;
     props.content_type = amqp_cstring_bytes("application/json");