2 * Copyright (c) 2019 Apple Inc. All rights reserved.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 #ifndef __DNSSD_ANALYTICS_H__
18 #define __DNSSD_ANALYTICS_H__
20 #include "DNSCommon.h"
26 #if MDNSRESPONDER_SUPPORTS(APPLE, ANALYTICS)
29 dnssd_analytics_init(void);
33 #if MDNSRESPONDER_SUPPORTS(APPLE, CACHE_ANALYTICS)
36 CacheRequestType_multicast
,
37 CacheRequestType_unicast
46 dnssd_analytics_update_cache_request(CacheRequestType inType
, CacheState inState
);
49 dnssd_analytics_update_cache_usage_counts(uint32_t inHitMulticastCount
, uint32_t inMissMulticastCount
, uint32_t inHitUnicastCount
, uint32_t inMissUnicastCount
);
51 #endif // CACHE_ANALYTICS
53 #if MDNSRESPONDER_SUPPORTS(APPLE, WAB_ANALYTICS)
58 WABUsageKind_operation
62 WABUsageType_enumeration
,
70 // Type: enumeration, query, llq
71 WABUsageEvent_positive
,
72 WABUsageEvent_negative
,
78 WABUsageEvent_connected
,
79 WABUsageEvent_session
,
81 WABUsageEvent_idledOut
,
83 WABUsageEvent_resumedGood
,
84 WABUsageEvent_resumedBad
,
88 WABUsageEvent_succeeded
,
89 WABUsageEvent_rejected
,
91 WABUsageEvent_answered
95 dnssd_analytics_post_WAB_usage_event_count(WABUsageKind inKind
, WABUsageType inType
, WABUsageEvent inEvent
, uint64_t inEventCount
);
97 #endif // WAB_ANALYTICS
103 #endif // __DNSSD_ANALYTICS_H__