Browse Source

fixed android build

pull/715/merge
orignal 8 years ago
parent
commit
7386b0a523
  1. 4
      BloomFilter.h
  2. 2
      android/jni/Android.mk

4
BloomFilter.h

@ -13,11 +13,11 @@ namespace util
{ {
/** @brief destructor */ /** @brief destructor */
virtual ~IBloomFilter(); virtual ~IBloomFilter() {};
/** @brief add entry to bloom filter, return false if filter hit otherwise return true */ /** @brief add entry to bloom filter, return false if filter hit otherwise return true */
virtual bool Add(const uint8_t * data, std::size_t len) = 0; virtual bool Add(const uint8_t * data, std::size_t len) = 0;
/** @brief optionally decay old entries */ /** @brief optionally decay old entries */
virtual void Decay(); virtual void Decay() = 0;
}; };
typedef std::shared_ptr<IBloomFilter> BloomFilterPtr; typedef std::shared_ptr<IBloomFilter> BloomFilterPtr;

2
android/jni/Android.mk

@ -59,7 +59,7 @@ LOCAL_SRC_FILES := DaemonAndroid.cpp i2pd_android.cpp \
../../TunnelPool.cpp \ ../../TunnelPool.cpp \
../../Timestamp.cpp \ ../../Timestamp.cpp \
../../Event.cpp \ ../../Event.cpp \
../../BloomFiler.cpp \ ../../BloomFilter.cpp \
../../util.cpp \ ../../util.cpp \
../../i2pd.cpp ../../UPnP.cpp ../../i2pd.cpp ../../UPnP.cpp

Loading…
Cancel
Save