• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2025 The Android Open Source Project
3  *
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
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  */
16 
17 #ifndef CHPP_VENDOR_CLIENTS_H_
18 #define CHPP_VENDOR_CLIENTS_H_
19 
20 #include <stdbool.h>
21 #include <stddef.h>
22 #include <stdint.h>
23 
24 #include "chpp/app.h"
25 #include "chpp/macros.h"
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
31 /************************************************
32  *  Public functions
33  ***********************************************/
34 
35 /**
36  * Registers vendor specific services with the CHPP app layer.
37  * These services are enabled by CHPP_CLIENT_ENABLED_VENDOR definition.
38  * This function is automatically called by chppAppInit().
39  *
40  * @param context State of the app layer.
41  */
42 void chppRegisterVendorClients(struct ChppAppState *context);
43 
44 /**
45  * Deregisters vendor specific clients with the CHPP app layer.
46  * These services are enabled by CHPP_CLIENT_ENABLED_VENDOR definition.
47  * This function is automatically called by chppAppDeinit().
48  *
49  * @param context State of the app layer.
50  */
51 void chppDeregisterVendorClients(struct ChppAppState *context);
52 
53 #ifdef __cplusplus
54 }
55 #endif
56 
57 #endif  // CHPP_VENDOR_CLIENTS_H_