nl-linux 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: df579603e97b80f797b8ea8d1b38199873c07debdd82422c9352a9c176e7e5ca
4
- data.tar.gz: 5417475edcb03943768e6533dd938439ef0e85bc2d120878cec35a3b89901fb2
3
+ metadata.gz: 690c036620d864dbfbf403fc4f16586e99205f5f251e53334746a43763f8df27
4
+ data.tar.gz: b8e39d095896efca406c995d7bbe7cf6a240c27b90de97b674cafd765c01d063
5
5
  SHA512:
6
- metadata.gz: 963857b6b18959f58537fa27645555e71b74d597df7d5d7684fc4fee1588232ee25d4ad58b93d28aeeb86c2a82defa4afdc828023b4f98254ec3d260b033771d
7
- data.tar.gz: bfa923cfe0a5e767366a297d57e5129f97ef94a04729e1d665e76878e2a540b7aed7259e27983125aad69c7f2c0347d23eccf0183c3101ab5e2514f9da2cea8b
6
+ metadata.gz: 71cca0166c97b16dc1347c1fbe577cd103d5c5a69e93ddf949c340c5cb93d30892e5326109d57824dc34e1888325a321c3e737cc5cd75ed9af8966fffca61b65
7
+ data.tar.gz: ae3b6f6bf87115ed1372f0507ccde9d247ac16c28672d07b0faa7f75def4d5418b685cb43ed8d4f6463f40579536eeb71739a3087e38ff8c36d97054fbf4fc5a
data/CHANGELOG.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## v0.2.1 (2026-03-02)
6
+
5
7
  ## v0.2.0 (2026-03-02)
6
8
 
7
9
  - Initial release
@@ -0,0 +1,94 @@
1
+ # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
2
+ #
3
+ # Copyright 2025 Google LLC
4
+ #
5
+ #--
6
+ # frozen_string_literal: true
7
+ # rbs_inline: enabled
8
+ # This code is generated by Ynl::Generator. DO NOT EDIT.
9
+ require 'nl'
10
+ # Binder interface over generic netlink
11
+ class Nl::Linux::Binder < ::Nl::Family
12
+ NAME = "binder"
13
+ PROTOCOL = Ractor.make_shareable(::Nl::Protocols::Genl.new("binder"))
14
+ module Structs
15
+ end
16
+ module AttributeSets
17
+ # Attributes included within a transaction failure report. The elements
18
+ # correspond directly with the specific transaction that failed, along
19
+ # with the error returned to the sender e.g. BR_DEAD_REPLY.
20
+ class Report < ::Nl::Protocols::Genl::AttributeSet
21
+ # Abstract class
22
+ class Attribute < ::Nl::Protocols::Genl::AttributeSet::Attribute
23
+ end
24
+ class Error < Attribute
25
+ TYPE = 1
26
+ NAME = :"error"
27
+ DATATYPE = ::Nl::Protocols::Genl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
28
+ end
29
+ class Context < Attribute
30
+ TYPE = 2
31
+ NAME = :"context"
32
+ DATATYPE = ::Nl::Protocols::Genl::DataTypes::String.new(check: nil)
33
+ end
34
+ class FromPid < Attribute
35
+ TYPE = 3
36
+ NAME = :"from_pid"
37
+ DATATYPE = ::Nl::Protocols::Genl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
38
+ end
39
+ class FromTid < Attribute
40
+ TYPE = 4
41
+ NAME = :"from_tid"
42
+ DATATYPE = ::Nl::Protocols::Genl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
43
+ end
44
+ class ToPid < Attribute
45
+ TYPE = 5
46
+ NAME = :"to_pid"
47
+ DATATYPE = ::Nl::Protocols::Genl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
48
+ end
49
+ class ToTid < Attribute
50
+ TYPE = 6
51
+ NAME = :"to_tid"
52
+ DATATYPE = ::Nl::Protocols::Genl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
53
+ end
54
+ class IsReply < Attribute
55
+ TYPE = 7
56
+ NAME = :"is_reply"
57
+ DATATYPE = ::Nl::Protocols::Genl::DataTypes::Flag.new
58
+ end
59
+ class Flags < Attribute
60
+ TYPE = 8
61
+ NAME = :"flags"
62
+ DATATYPE = ::Nl::Protocols::Genl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
63
+ end
64
+ class Code < Attribute
65
+ TYPE = 9
66
+ NAME = :"code"
67
+ DATATYPE = ::Nl::Protocols::Genl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
68
+ end
69
+ class DataSize < Attribute
70
+ TYPE = 10
71
+ NAME = :"data_size"
72
+ DATATYPE = ::Nl::Protocols::Genl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
73
+ end
74
+ # :nodoc:
75
+ BY_NAME = Ractor.make_shareable({:"error" => Error, :"context" => Context, :"from_pid" => FromPid, :"from_tid" => FromTid, :"to_pid" => ToPid, :"to_tid" => ToTid, :"is_reply" => IsReply, :"flags" => Flags, :"code" => Code, :"data_size" => DataSize}) #: Hash[::Symbol, Attribute]
76
+ # :nodoc:
77
+ BY_TYPE = Ractor.make_shareable({1 => Error, 2 => Context, 3 => FromPid, 4 => FromTid, 5 => ToPid, 6 => ToTid, 7 => IsReply, 8 => Flags, 9 => Code, 10 => DataSize}) #: Hash[::Integer, Attribute]
78
+ class << self
79
+ # Looks up Attribute class by name.
80
+ #--
81
+ # @rbs name: Symbol
82
+ # @rbs return: Attribute
83
+ def by_name(name); BY_NAME.fetch(name); end
84
+ # Looks up Attribute class by type value.
85
+ #--
86
+ # @rbs type: Integer
87
+ # @rbs return: Attribute
88
+ def by_type(type); BY_TYPE.fetch(type); end
89
+ end
90
+ end
91
+ end
92
+ module Messages
93
+ end
94
+ end