diff options
Diffstat (limited to 'mDNSResponder/mDNSMacOSX/Metrics.h')
-rw-r--r-- | mDNSResponder/mDNSMacOSX/Metrics.h | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/mDNSResponder/mDNSMacOSX/Metrics.h b/mDNSResponder/mDNSMacOSX/Metrics.h index dbe6196a..ff419fd8 100644 --- a/mDNSResponder/mDNSMacOSX/Metrics.h +++ b/mDNSResponder/mDNSMacOSX/Metrics.h @@ -1,6 +1,5 @@ -/* -*- 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. @@ -15,19 +14,22 @@ * 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 |