Add logger class
[platform/core/appfw/pkgmgr-info.git] / src / manager / pkginfo_manager.cc
1 /*
2  * Copyright (c) 2021 Samsung Electronics Co., Ltd.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 #include "manager/pkginfo_manager.h"
18
19 #include <sys/types.h>
20
21 #include "glib.h"
22
23 #include "pkgmgrinfo_private.h"
24
25 #include "logging.hh"
26 #include "filter_parcelable.hh"
27 #include "pkginfo_parcelable.hh"
28
29 #include "client/pkginfo_client.hh"
30
31 #include <parcel.hh>
32
33 #ifdef LOG_TAG
34 #undef LOG_TAG
35 #endif
36 #define LOG_TAG "PKGMGR_INFO"
37
38 #ifdef EXPORT_API
39 #undef EXPORT_API
40 #endif
41 #define EXPORT_API __attribute__((visibility("default")))
42
43 extern "C" EXPORT_API int _pkginfo_get_packages(uid_t uid,
44     pkgmgrinfo_filter_x *filter, int flag, GHashTable *packages) {
45   return 0;
46 }