1 #ifndef GET_CFLAGS_H_
2 #define GET_CFLAGS_H_
3 /*
4  * Copyright (C) 2018 The Android Open Source Project
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  *      http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License
17  */
18 
19 #pragma once
20 
21 // Use the category name and flag name registered in SettingsToPropertiesMapper.java
22 // to query the experiment flag value. This method will return default_value if
23 // querying fails.
24 // Note that for flags from Settings.Global, experiment_category_name should
25 // always be global_settings.
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
31 const char* server_configurable_flags_GetServerConfigurableFlag(
32     const char* experiment_category_name,
33     const char* experiment_flag_name,
34     const char* default_value);
35 
36 #ifdef __cplusplus
37 }
38 #endif
39 
40 #endif // GET_CFLAGS_H_
41