net-snmp 0.2.4 → 0.2.5
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.
- data/lib/net/snmp/mib.rb +2 -2
- data/lib/net/snmp/version.rb +1 -1
- data/lib/net/snmp/wrapper.rb +2 -2
- metadata +3 -3
data/lib/net/snmp/mib.rb
CHANGED
@@ -3,7 +3,7 @@ module Net
|
|
3
3
|
module SNMP
|
4
4
|
module MIB
|
5
5
|
def self.init
|
6
|
-
Wrapper.
|
6
|
+
Wrapper.netsnmp_init_mib
|
7
7
|
end
|
8
8
|
|
9
9
|
def self.read_all_mibs
|
@@ -22,7 +22,7 @@ module Net
|
|
22
22
|
Wrapper.read_mib(filename)
|
23
23
|
end
|
24
24
|
def self.read_module(name)
|
25
|
-
Wrapper.
|
25
|
+
Wrapper.netsnmp_read_module(name)
|
26
26
|
end
|
27
27
|
|
28
28
|
end
|
data/lib/net/snmp/version.rb
CHANGED
data/lib/net/snmp/wrapper.rb
CHANGED
@@ -346,11 +346,11 @@ module Wrapper
|
|
346
346
|
|
347
347
|
|
348
348
|
# MIB functions
|
349
|
-
attach_function :
|
349
|
+
attach_function :netsnmp_init_mib, [], :void
|
350
350
|
attach_function :read_all_mibs, [], :void
|
351
351
|
attach_function :add_mibdir, [:string], :int
|
352
352
|
attach_function :read_mib, [:string], Tree.typed_pointer
|
353
|
-
attach_function :
|
353
|
+
attach_function :netsnmp_read_module, [:string], Tree.typed_pointer
|
354
354
|
attach_function :snmp_set_save_descriptions, [:int], :void
|
355
355
|
|
356
356
|
attach_function :get_tree_head, [], Tree.typed_pointer
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 2
|
8
|
-
-
|
9
|
-
version: 0.2.
|
8
|
+
- 5
|
9
|
+
version: 0.2.5
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Ron McClain
|
@@ -132,7 +132,7 @@ rdoc_options:
|
|
132
132
|
- --main=README.rdoc
|
133
133
|
- --line-numbers
|
134
134
|
- --inline-source
|
135
|
-
- --title=net-snmp-0.2.
|
135
|
+
- --title=net-snmp-0.2.5 Documentation
|
136
136
|
require_paths:
|
137
137
|
- lib
|
138
138
|
required_ruby_version: !ruby/object:Gem::Requirement
|