mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-12 08:33:05 -04:00
Got GxsId service compiling and linking.
- Added entries in rsinit.cc - Added serialiser functions. - Tweaked some datatypes. - Fixed up duplicate headers. git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-gxs-b1@5736 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
df1a3297e0
commit
cddeaeea81
8 changed files with 630 additions and 15 deletions
|
@ -57,19 +57,23 @@ p3IdService::p3IdService(RsGeneralDataService *gds, RsNetworkExchangeService *ne
|
|||
|
||||
}
|
||||
|
||||
int p3IdService::internal_tick()
|
||||
void p3IdService::service_tick()
|
||||
{
|
||||
std::cerr << "p3IdService::internal_tick()";
|
||||
std::cerr << "p3IdService::service_tick()";
|
||||
std::cerr << std::endl;
|
||||
|
||||
// Disable for now.
|
||||
// background_tick();
|
||||
|
||||
cache_tick();
|
||||
//cache_tick();
|
||||
|
||||
return 0;
|
||||
return;
|
||||
}
|
||||
|
||||
void p3IdService::notifyChanges(std::vector<RsGxsNotify *> &changes)
|
||||
{
|
||||
receiveChanges(changes);
|
||||
}
|
||||
|
||||
/********************************************************************************/
|
||||
/******************* RsIdentity Interface ***************************************/
|
||||
|
|
|
@ -102,12 +102,14 @@ class LruData
|
|||
// Not sure exactly what should be inherited here?
|
||||
// Chris - please correct as necessary.
|
||||
|
||||
class p3IdService: public RsGxsIdExchange, public RsIdentity
|
||||
class p3IdService:
|
||||
public RsGxsIdExchange,
|
||||
public RsIdentity
|
||||
{
|
||||
public:
|
||||
p3IdService(RsGeneralDataService* gds, RsNetworkExchangeService* nes);
|
||||
|
||||
virtual int internal_tick(); // needed for background processing.
|
||||
virtual void service_tick(); // needed for background processing.
|
||||
|
||||
|
||||
/* General Interface is provided by RsIdentity / RsGxsIfaceImpl. */
|
||||
|
@ -155,6 +157,12 @@ virtual int getPrivateKey(const RsGxsId &id, RsTlvSecurityKey &key);
|
|||
// get Reputation.
|
||||
virtual bool getReputation(const RsGxsId &id, const GixsReputation &rep);
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
/** Notifications **/
|
||||
virtual void notifyChanges(std::vector<RsGxsNotify*>& changes);
|
||||
|
||||
private:
|
||||
|
||||
/************************************************************************
|
||||
|
|
|
@ -23,8 +23,8 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#ifndef P3_IDENTITY_SERVICE_HEADER
|
||||
#define P3_IDENTITY_SERVICE_HEADER
|
||||
#ifndef P3_IDENTITY_SERVICE_VEG_HEADER
|
||||
#define P3_IDENTITY_SERVICE_VEG_HEADER
|
||||
|
||||
#include "services/p3service.h"
|
||||
#include "services/p3gxsserviceVEG.h"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue