-/* -*- Mode: C; tab-width: 4 -*-
- *
- * Copyright (c) 2016 Apple Inc. All rights reserved.
+/*
+ * Copyright (c) 2016-2017 Apple Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* limitations under the License.
*/
-#include "mDNSEmbeddedAPI.h"
-
#ifndef __Metrics_h
#define __Metrics_h
+#include "mDNSEmbeddedAPI.h"
+#include <TargetConditionals.h>
+
#ifdef __cplusplus
extern "C" {
#endif
-#if TARGET_OS_EMBEDDED
+#if TARGET_OS_IOS
mStatus MetricsInit(void);
-void MetricsUpdateUDNSQueryStats(const domainname *inQueryName, mDNSu16 inType, const ResourceRecord *inRR, mDNSu32 inSendCount, mDNSu32 inLatencyMs, mDNSBool inForCell);
-void MetricsUpdateUDNSResolveStats(const domainname *inQueryName, const ResourceRecord *inRR, mDNSBool inForCell);
+void MetricsUpdateDNSQueryStats(const domainname *inQueryName, mDNSu16 inType, const ResourceRecord *inRR, mDNSu32 inSendCount, mDNSu32 inLatencyMs, mDNSBool inForCell);
+void MetricsUpdateDNSResolveStats(const domainname *inQueryName, const ResourceRecord *inRR, mDNSBool inForCell);
+void MetricsUpdateDNSQuerySize(mDNSu32 inSize);
+void MetricsUpdateDNSResponseSize(mDNSu32 inSize);
void LogMetrics(void);
#endif