static gboolean meta1_dispatch_v2_SRV_ALLONM1(struct gridd_reply_ctx_s *reply, struct meta1_backend_s *m1, gpointer ignored UNUSED) { struct oio_url_s *url = metautils_message_extract_url (reply->request); reply->subject("%s|%s", oio_url_get(url, OIOURL_WHOLE), oio_url_get(url, OIOURL_HEXID)); reply->send_reply(CODE_TEMPORARY, "Received"); gchar **result = NULL; GError *err = meta1_backend_services_all(m1, url, &result); if (NULL != err) reply->send_error(0, err); else { reply->add_body(encode_and_clean(STRV_encode_gba, result)); reply->send_reply(CODE_FINAL_OK, "OK"); } oio_url_clean (url); return TRUE; }
static gboolean meta1_dispatch_v2_SRV_ALLONM1(struct gridd_reply_ctx_s *reply, struct meta1_backend_s *m1, gpointer ignored) { GError *err; gchar **result = NULL; struct oio_url_s *url = metautils_message_extract_url (reply->request); reply->subject("%s|%s", oio_url_get(url, OIOURL_WHOLE), oio_url_get(url, OIOURL_HEXID)); reply->send_reply(CODE_TEMPORARY, "Received"); (void) ignored; if (NULL != (err = meta1_backend_services_all(m1, url, &result))) reply->send_error(0, err); else { reply->add_body(marshall_stringv_and_clean(&result)); reply->send_reply(CODE_FINAL_OK, "OK"); } if (result) g_strfreev (result); oio_url_clean (url); return TRUE; }