fix for windows plugin system

uses call back to expose the retroshare interface to plugins



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4633 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
chrisparker126 2011-10-08 17:47:36 +00:00
parent 2173ee0d2e
commit c1af9b13ad
14 changed files with 179 additions and 52 deletions

View file

@ -28,7 +28,7 @@
#include <retroshare/rsplugin.h>
#include <iomanip>
#include "pqi/p3connmgr.h"
#include "pqi/p3linkmgr.h"
#include "pqi/pqibin.h"
#include "pqi/authssl.h"
#include "pqi/pqistore.h"
@ -55,13 +55,13 @@ std::string generateRandomLinkId();
*********/
#define RANK_DEBUG 1
p3Ranking::p3Ranking()
: RsCacheService(RS_SERVICE_TYPE_RANK,CONFIG_TYPE_RANK_LINK,5),
p3Ranking::p3Ranking(RsPluginHandler* pgHandler)
: RsCacheService(RS_SERVICE_TYPE_RANK,CONFIG_TYPE_RANK_LINK,5, pgHandler),
mRepublish(false), mRepublishFriends(false), mRepublishFriendTS(0), mStorePeriod(RANK_STORE_PERIOD), mUpdated(true),mRankMtx(std::string("p3Ranking"))
{
RsStackMutex stack(mRankMtx); /********** STACK LOCKED MTX ******/
mOwnId = rsPlugins->getConnectMgr()->getOwnId();
mOwnId = pgHandler->getLinkMgr()->getOwnId();
mViewPeriod = 60 * 60 * 24 * 30; /* one Month */
mSortType = RS_RANK_ALG;
}