15db71995Sopenharmony_ci/*
25db71995Sopenharmony_ci *
35db71995Sopenharmony_ci * Copyright (c) 2018 Google Inc.
45db71995Sopenharmony_ci *
55db71995Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
65db71995Sopenharmony_ci * you may not use this file except in compliance with the License.
75db71995Sopenharmony_ci * You may obtain a copy of the License at
85db71995Sopenharmony_ci *
95db71995Sopenharmony_ci *     http://www.apache.org/licenses/LICENSE-2.0
105db71995Sopenharmony_ci *
115db71995Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software
125db71995Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
135db71995Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
145db71995Sopenharmony_ci * See the License for the specific language governing permissions and
155db71995Sopenharmony_ci * limitations under the License.
165db71995Sopenharmony_ci *
175db71995Sopenharmony_ci */
185db71995Sopenharmony_ci#pragma once
195db71995Sopenharmony_ci
205db71995Sopenharmony_ci#include <zircon/compiler.h>
215db71995Sopenharmony_ci#include <stdbool.h>
225db71995Sopenharmony_ci
235db71995Sopenharmony_ci__BEGIN_CDECLS
245db71995Sopenharmony_ci
255db71995Sopenharmony_ci// If not |driver|, then the request is to load a layer.
265db71995Sopenharmony_civoid *dlopen_fuchsia(const char *name, int mode, bool driver);
275db71995Sopenharmony_ciconst char *dlerror_fuchsia(void);
285db71995Sopenharmony_ci
295db71995Sopenharmony_ci__END_CDECLS
30