hc
2024-01-05 071106ecf68c401173c58808b1cf5f68cc50d390
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// Copyright 2020 Fuzhou Rockchip Electronics Co., Ltd. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
 
#include <assert.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <unistd.h>
#include <glib.h>
#include <dbus-c++/dbus.h>
#include <stddef.h>
#include <memory>
#include <iostream>
#include <map>
#include <algorithm>
 
#include "IPCProtocol.h"
#include "dbus_connection.h"
 
int IPCProtocol_init(void)
{
    int ret = -1;
    try {
        DBus::Connection con = get_dbus_conn();
        ret = 0;
    } catch (DBus::Error err) {
        printf("DBus::Error - %s\n", err.what());
    }
 
    return ret;
}
 
void IPCProtocol_deinit(void)
{
 
}