1cf7c71c1SJason Zhu /* 2cf7c71c1SJason Zhu * Copyright (C) 2016 The Android Open Source Project 3cf7c71c1SJason Zhu * 4cf7c71c1SJason Zhu * Permission is hereby granted, free of charge, to any person 5cf7c71c1SJason Zhu * obtaining a copy of this software and associated documentation 6cf7c71c1SJason Zhu * files (the "Software"), to deal in the Software without 7cf7c71c1SJason Zhu * restriction, including without limitation the rights to use, copy, 8cf7c71c1SJason Zhu * modify, merge, publish, distribute, sublicense, and/or sell copies 9cf7c71c1SJason Zhu * of the Software, and to permit persons to whom the Software is 10cf7c71c1SJason Zhu * furnished to do so, subject to the following conditions: 11cf7c71c1SJason Zhu * 12cf7c71c1SJason Zhu * The above copyright notice and this permission notice shall be 13cf7c71c1SJason Zhu * included in all copies or substantial portions of the Software. 14cf7c71c1SJason Zhu * 15cf7c71c1SJason Zhu * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16cf7c71c1SJason Zhu * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17cf7c71c1SJason Zhu * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18cf7c71c1SJason Zhu * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS 19cf7c71c1SJason Zhu * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN 20cf7c71c1SJason Zhu * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21cf7c71c1SJason Zhu * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22cf7c71c1SJason Zhu * SOFTWARE. 23cf7c71c1SJason Zhu */ 24cf7c71c1SJason Zhu 25cf7c71c1SJason Zhu #ifndef LIBAVB_AB_H_ 26cf7c71c1SJason Zhu #define LIBAVB_AB_H_ 27cf7c71c1SJason Zhu 28cf7c71c1SJason Zhu #include <android_avb/libavb.h> 29cf7c71c1SJason Zhu 30*37a7bc39SJason Zhu /* The libavb_ab/ and boot_control/ code has been marked for some time 31*37a7bc39SJason Zhu * as experimental in anticipation of being removed in the future. It 32*37a7bc39SJason Zhu * is now deprecated and to continue using it you must define 33*37a7bc39SJason Zhu * AVB_AB_I_UNDERSTAND_LIBAVB_AB_IS_DEPRECATED. It will be removed Jun 34*37a7bc39SJason Zhu * 1 2018. 35*37a7bc39SJason Zhu */ 36*37a7bc39SJason Zhu 37*37a7bc39SJason Zhu /* 38*37a7bc39SJason Zhu #ifndef AVB_AB_I_UNDERSTAND_LIBAVB_AB_IS_DEPRECATED 39*37a7bc39SJason Zhu #error \ 40*37a7bc39SJason Zhu "You must define AVB_AB_I_UNDERSTAND_LIBAVB_AB_IS_DEPRECATED to use this library." 41*37a7bc39SJason Zhu #endif 42*37a7bc39SJason Zhu */ 43*37a7bc39SJason Zhu 44cf7c71c1SJason Zhu /* The AVB_INSIDE_LIBAVB_AB_H preprocessor symbol is used to enforce 45cf7c71c1SJason Zhu * library users to include only this file. All public interfaces, and 46cf7c71c1SJason Zhu * only public interfaces, must be included here. 47cf7c71c1SJason Zhu */ 48cf7c71c1SJason Zhu 49cf7c71c1SJason Zhu #define AVB_INSIDE_LIBAVB_AB_H 50cf7c71c1SJason Zhu #include <android_avb/avb_ab_flow.h> 51cf7c71c1SJason Zhu #include <android_avb/avb_ab_ops.h> 52cf7c71c1SJason Zhu #undef AVB_INSIDE_LIBAVB_AB_H 53cf7c71c1SJason Zhu 54cf7c71c1SJason Zhu #endif /* LIBAVB_AB_H_ */ 55