network-info 0.2.0.1 → 0.2.0.2
raw patch · 3 files changed
+18/−20 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- cbits/network-unix.c +3/−0
- network-info.cabal +11/−13
- test/network-info-test.cabal +4/−7
cbits/network-unix.c view
@@ -64,6 +64,9 @@ error = getifaddrs(&ifaddr); if (error != 0) {+ /* TODO printing the error to stderr is not a very nice thing for+ * TODO a library to do, but i've never seen this happen and its+ * TODO probably better than failing silently. */ perror("getifaddrs"); return 0; }
network-info.cabal view
@@ -1,13 +1,14 @@ name: network-info-version: 0.2.0.1+version: 0.2.0.2 synopsis: Access the local computer's basic network configuration-description: This library provides simple read-only access to the local computer's- networking configuration. It is currently capable of getting a list of- all the network interfaces and their respective IPv4, IPv6 and MAC+description: This library provides simple read-only access to the+ local computer's networking configuration. It is+ currently capable of getting a list of all the network+ interfaces and their respective IPv4, IPv6 and MAC addresses. .- network-info has been tested and is known to work on Ubuntu 10.10, Mac- OS X 10.6.4 and Windows XP.+ network-info has been tested and is known to work on+ Ubuntu 10.10, Mac OS X 10.6.4 and Windows XP. homepage: http://github.com/jystic/network-info license: BSD3 license-file: LICENSE@@ -40,11 +41,8 @@ build-depends: base == 4.* - if os(linux) || os(darwin)- c-sources: cbits/network-unix.c+ if os(windows)+ c-sources: cbits/network-windows.c+ extra-libraries: iphlpapi else- if os(windows)- c-sources: cbits/network-windows.c- extra-libraries: iphlpapi- else- buildable: False+ c-sources: cbits/network-unix.c
test/network-info-test.cabal view
@@ -14,11 +14,8 @@ build-depends: base == 4.* - if os(linux) || os(darwin)- c-sources: ../cbits/network-unix.c+ if os(windows)+ c-sources: ../cbits/network-windows.c+ extra-libraries: iphlpapi else- if os(windows)- c-sources: ../cbits/network-windows.c- extra-libraries: iphlpapi- else- buildable: False+ c-sources: ../cbits/network-unix.c