MakerLabs ACM
curl_library_info.h
Go to the documentation of this file.
1 /*
2  * Copyright Paul Reimer, 2018
3  *
4  * This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 Unported License.
5  * To view a copy of this license, visit
6  * https://creativecommons.org/licenses/by-nc-sa/4.0/
7  * or send a letter to
8  * Creative Commons, 444 Castro Street, Suite 900, Mountain View, California, 94041, USA.
9  */
10 
11 #pragma once
12 
13 #include "esp_log.h"
14 
15 namespace Requests {
16 
17 auto has_feature = [](const auto features, const auto feature_flag)
18  -> bool
19 {
20  return (features & feature_flag);
21 };
22 
24  const auto TAG,
25  const auto features,
26  const auto feature_flag,
27  const auto feature_name
28 ) -> bool
29 {
30  auto supported = has_feature(features, feature_flag);
31  ESP_LOGI(TAG, "- %s%s supported", feature_name, supported? "" : " NOT");
32 
33  return supported;
34 };
35 
37  -> void;
38 
39 } // namespace Requests
auto print_check_feature
Definition: curl_library_info.h:23
auto has_feature
Definition: curl_library_info.h:17
auto print_curl_library_info() -> void
Definition: curl_library_info.cpp:17
constexpr char TAG[]
Definition: queued_endpoint_actor.cpp:39
Definition: curl_library_info.cpp:15