1 /*
2 * Copyright (c) 2021-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 #include "document_n_exporter.h"
17
18 #include <sys/statvfs.h>
19 #include <tuple>
20
21 #include "../common/napi/n_async/n_async_work_callback.h"
22 #include "../common/napi/n_async/n_async_work_promise.h"
23 #include "../common/napi/n_class.h"
24 #include "../common/napi/n_func_arg.h"
25 #include "../common/napi/n_val.h"
26 #include "../common/uni_error.h"
27
28 namespace OHOS {
29 namespace DistributedFS {
30 namespace ModuleDocument {
Choose(napi_env env,napi_callback_info info)31 napi_value Choose(napi_env env, napi_callback_info info)
32 {
33 UniError(EINVAL).ThrowErr(env, "error");
34 return nullptr;
35 }
36
Show(napi_env env,napi_callback_info info)37 napi_value Show(napi_env env, napi_callback_info info)
38 {
39 UniError(EINVAL).ThrowErr(env, "error");
40 return nullptr;
41 }
42 } // namespace ModuleDocument
43 } // namespace DistributedFS
44 } // namespace OHOS