Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

fixing ticket 4. using netsnmp_init_mib and netsnmp_read_module instead

of init_mib and read_module
  • Loading branch information...
commit 49349bb2b2891e63003362ed7cb55b5da6d28a71 1 parent 787f593
mixtli authored
4 lib/net/snmp/mib.rb
@@ -3,7 +3,7 @@ module Net
3 3 module SNMP
4 4 module MIB
5 5 def self.init
6   - Wrapper.init_mib
  6 + Wrapper.netsnmp_init_mib
7 7 end
8 8
9 9 def self.read_all_mibs
@@ -22,7 +22,7 @@ def self.read_mib(filename)
22 22 Wrapper.read_mib(filename)
23 23 end
24 24 def self.read_module(name)
25   - Wrapper.read_module(name)
  25 + Wrapper.netsnmp_read_module(name)
26 26 end
27 27
28 28 end
5 lib/net/snmp/version.rb
... ... @@ -1,5 +0,0 @@
1   -module Net
2   - module SNMP
3   - VERSION = "0.2.4"
4   - end
5   -end
4 lib/net/snmp/wrapper.rb
@@ -346,11 +346,11 @@ class IndexList < NiceFFI::Struct
346 346
347 347
348 348 # MIB functions
349   - attach_function :init_mib, [], :void
  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 :read_module, [:string], Tree.typed_pointer
  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

0 comments on commit 49349bb

Please sign in to comment.
Something went wrong with that request. Please try again.