1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-23 02:35:57 +01:00

Add missing TINS_API on address types

Fixes #229
This commit is contained in:
Matias Fontanini
2017-08-05 19:12:12 -07:00
parent ecacd4aee5
commit f89e922d72
3 changed files with 11 additions and 9 deletions

View File

@@ -35,6 +35,7 @@
#include <string>
#include <cstring>
#include "cxxstd.h"
#include "macros.h"
#if TINS_IS_CXX11
// std::hash
#include <memory>
@@ -47,15 +48,16 @@ namespace Internals {
/**
* \cond
*/
std::string hw_address_to_string(const uint8_t* ptr, size_t count);
TINS_API std::string hw_address_to_string(const uint8_t* ptr, size_t count);
void string_to_hw_address(const std::string& hw_addr, uint8_t* output, size_t output_size);
TINS_API void string_to_hw_address(const std::string& hw_addr, uint8_t* output,
size_t output_size);
bool hw_address_equal_compare(const uint8_t* start1, const uint8_t* end1,
const uint8_t* start2);
TINS_API bool hw_address_equal_compare(const uint8_t* start1, const uint8_t* end1,
const uint8_t* start2);
bool hw_address_lt_compare(const uint8_t* start1, const uint8_t* end1,
const uint8_t* start2, const uint8_t* end2);
TINS_API bool hw_address_lt_compare(const uint8_t* start1, const uint8_t* end1,
const uint8_t* start2, const uint8_t* end2);
/**
* \endcond

View File

@@ -204,7 +204,7 @@ private:
namespace std {
template<>
struct hash<Tins::IPv4Address> {
TINS_API struct hash<Tins::IPv4Address> {
size_t operator()(const Tins::IPv4Address& addr) const;
};

View File

@@ -203,7 +203,7 @@ public:
* \param addr The parameter to be written.
* \return std::ostream& pointing to the os parameter.
*/
friend std::ostream& operator<<(std::ostream& os, const IPv6Address& addr);
TINS_API friend std::ostream& operator<<(std::ostream& os, const IPv6Address& addr);
/**
* Applies a mask to an address
@@ -222,7 +222,7 @@ private:
namespace std {
template<>
struct hash<Tins::IPv6Address> {
TINS_API struct hash<Tins::IPv6Address> {
size_t operator()(const Tins::IPv6Address& addr) const;
};