1 /*
2  * Copyright (C) 2022 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #ifndef FILLP_STACK_APP_CONFIG_IN_H
17 #define FILLP_STACK_APP_CONFIG_IN_H
18 
19 #include "utils.h"
20 #include "spunge.h"
21 #include "socket_common.h"
22 #include "res.h"
23 #include "spunge_stack.h"
24 #include "spunge_message.h"
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif /* __cplusplus */
29 
30 #define FILLP_RARE_3 3
31 
32 FILLP_INT32 FtAppInitConfigGet(IO FillpAppGlobalConfigsSt *globalResource, IN FILLP_INT sockIndex);
33 FILLP_INT32 FtAppInitConfigSet(IN FILLP_CONST FillpAppGlobalConfigsSt *globalResource, IN FILLP_INT sockIndex);
34 FILLP_INT32 FtGetConfigApp(IN FILLP_UINT32 name, IO void *value, IN FILLP_CONST void *param);
35 FILLP_INT32 FtSetConfigApp(IN FILLP_UINT32 name, IN FILLP_CONST void *value, IN FILLP_CONST void *param);
36 FILLP_INT32 FtAppValidateConfigParams(IN FILLP_CONST FillpAppGlobalConfigsSt *globalResource);
37 FILLP_INT32 FtInnerAppConfigGet(IN FILLP_UINT32 name, IO void *value,
38     IN FILLP_CONST struct GlobalAppResource *resource);
39 FILLP_INT32 FtInnerAppConfigSet(IN FILLP_UINT32 name, IN FILLP_CONST void *value,
40     IN struct GlobalAppResource *resource, IN FILLP_INT sockIndex, IN struct FtSocket *sock);
41 FILLP_INT FtAppConfigInitNackDelayCfg(FILLP_INT sockIndex, struct GlobalAppResource *resource);
42 
43 #ifdef __cplusplus
44 }
45 #endif /* __cplusplus */
46 
47 #endif /* FILLP_STACK_APP_CONFIG_IN_H */
48