1cc290419Sopenharmony_ci/*
2cc290419Sopenharmony_ci * Copyright (C) 2021 Huawei Device Co., Ltd.
3cc290419Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
4cc290419Sopenharmony_ci * you may not use this file except in compliance with the License.
5cc290419Sopenharmony_ci * You may obtain a copy of the License at
6cc290419Sopenharmony_ci *
7cc290419Sopenharmony_ci *     http://www.apache.org/licenses/LICENSE-2.0
8cc290419Sopenharmony_ci *
9cc290419Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software
10cc290419Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
11cc290419Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12cc290419Sopenharmony_ci * See the License for the specific language governing permissions and
13cc290419Sopenharmony_ci * limitations under the License.
14cc290419Sopenharmony_ci */
15cc290419Sopenharmony_ci
16cc290419Sopenharmony_ci#ifndef HDC_DEFINE_REGISTER_H
17cc290419Sopenharmony_ci#define HDC_DEFINE_REGISTER_H
18cc290419Sopenharmony_ci
19cc290419Sopenharmony_ci#include <cinttypes>
20cc290419Sopenharmony_ci#include <cstdint>
21cc290419Sopenharmony_ci#include <cstdio>
22cc290419Sopenharmony_ci#include <cstdlib>
23cc290419Sopenharmony_ci#include <cstring>
24cc290419Sopenharmony_ci#include <iostream>
25cc290419Sopenharmony_ci#include <string>
26cc290419Sopenharmony_ci#include <thread>
27cc290419Sopenharmony_ci
28cc290419Sopenharmony_ci#include <securec.h>
29cc290419Sopenharmony_ci#include <sys/un.h>
30cc290419Sopenharmony_ci#include <unistd.h>
31cc290419Sopenharmony_ci#include <uv.h>
32cc290419Sopenharmony_ci#ifdef HDC_HILOG
33cc290419Sopenharmony_ci#include "hilog/log.h"
34cc290419Sopenharmony_ci#ifdef LOG_DOMAIN
35cc290419Sopenharmony_ci#undef LOG_DOMAIN
36cc290419Sopenharmony_ci#endif // LOG_DOMAIN
37cc290419Sopenharmony_ci
38cc290419Sopenharmony_ci#define LOG_DOMAIN 0xD002D13
39cc290419Sopenharmony_ci#ifdef LOG_TAG
40cc290419Sopenharmony_ci#undef LOG_TAG
41cc290419Sopenharmony_ci#endif // LOG_TAG
42cc290419Sopenharmony_ci
43cc290419Sopenharmony_ci#define LOG_TAG "HDC_LOG"
44cc290419Sopenharmony_ci#endif // HDC_HILOG
45cc290419Sopenharmony_ci
46cc290419Sopenharmony_cinamespace Hdc {
47cc290419Sopenharmony_ci// str one of ark:pid@com.xxx.xxxx, ark:pid@Debugger, ark:pid@tid@Debugger
48cc290419Sopenharmony_ciusing Callback = std::function<void(int fd, std::string str)>;
49cc290419Sopenharmony_ci}
50cc290419Sopenharmony_ci#endif // end HDC_DEFINE_REGISTER_H
51