firmware: 2api.h: Factor out 2context.h

Declaring struct vb2_context in 2api.h creates problems with circular
dependencies if other API functions need to rely on data types in
headers that in return need the vb2_context definition. This patch
solves that problem by factoring vb2_context out into its own header.

BRANCH=none
BUG=b:240624460
TEST=none

Signed-off-by: Julius Werner <jwerner@chromium.org>
Change-Id: I3d6a94e6e3d69cfa29d1f1415552446051a50c57
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/3825557
Reviewed-by: Yu-Ping Wu <yupingso@chromium.org>
Reviewed-by: Kangheui Won <khwon@chromium.org>
Tested-by: Jakub Czapiga <czapiga@google.com>
2 files changed