forked from linux-netdev/ynl-cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbinder-user.hpp
More file actions
55 lines (45 loc) · 1.19 KB
/
binder-user.hpp
File metadata and controls
55 lines (45 loc) · 1.19 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/* SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) */
/* Do not edit directly, auto-generated from: */
/* */
/* YNL-GEN user header */
#ifndef _LINUX_BINDER_GEN_H
#define _LINUX_BINDER_GEN_H
#include <linux/types.h>
#include <stdlib.h>
#include <string.h>
#include <list>
#include <memory>
#include <optional>
#include <string>
#include <string_view>
#include <vector>
#include <array>
#include "ynl.hpp"
#include <linux/android/binder_netlink.h>
namespace ynl_cpp {
const struct ynl_family& get_ynl_binder_family();
/* Enums */
std::string_view binder_op_str(int op);
/* Common nested types */
/* BINDER_CMD_REPORT - event */
struct binder_report_rsp {
std::optional<__u32> error;
std::string context;
std::optional<__u32> from_pid;
std::optional<__u32> from_tid;
std::optional<__u32> to_pid;
std::optional<__u32> to_tid;
bool is_reply{};
std::optional<__u32> flags;
std::optional<__u32> code;
std::optional<__u32> data_size;
};
struct binder_report {
__u16 family;
__u8 cmd;
struct ynl_ntf_base_type* next;
void (*free)(struct ynl_ntf_base_type* ntf);
binder_report_rsp obj __attribute__((aligned(8)));
};
} //namespace ynl_cpp
#endif /* _LINUX_BINDER_GEN_H */