mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-08 06:32:55 -04:00
added resource_api and rs-nogui-webui (requires libmicrohttpd, Html files are not included)
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8047 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
97831d0667
commit
ad1bc7f3b8
38 changed files with 5547 additions and 2 deletions
48
libresapi/src/api/GetPluginInterfaces.cpp
Normal file
48
libresapi/src/api/GetPluginInterfaces.cpp
Normal file
|
@ -0,0 +1,48 @@
|
|||
#include "GetPluginInterfaces.h"
|
||||
|
||||
#include <retroshare/rsplugin.h>
|
||||
|
||||
#include <retroshare/rsmsgs.h>
|
||||
#include <retroshare/rsturtle.h>
|
||||
#include <retroshare/rsdisc.h>
|
||||
#include <retroshare/rsdht.h>
|
||||
#include <retroshare/rsnotify.h>
|
||||
|
||||
#include <retroshare/rsidentity.h>
|
||||
#include <retroshare/rsgxscircles.h>
|
||||
#include <retroshare/rsgxsforums.h>
|
||||
#include <retroshare/rsgxschannels.h>
|
||||
|
||||
namespace resource_api{
|
||||
|
||||
bool getPluginInterfaces(RsPlugInInterfaces& interfaces)
|
||||
{
|
||||
// when rsPlugins is null, then rs was not started
|
||||
if(rsPlugins == 0)
|
||||
return false;
|
||||
|
||||
interfaces.mFiles = rsFiles;
|
||||
interfaces.mPeers = rsPeers;
|
||||
interfaces.mMsgs = rsMsgs;
|
||||
interfaces.mTurtle = rsTurtle;
|
||||
interfaces.mDisc = rsDisc;
|
||||
interfaces.mDht = rsDht;
|
||||
interfaces.mNotify = rsNotify;
|
||||
|
||||
// gxs
|
||||
interfaces.mGxsDir = "";
|
||||
interfaces.mIdentity = rsIdentity;
|
||||
// not exposed with global variable, can't get it
|
||||
interfaces.mRsNxsNetMgr = 0;
|
||||
// same as identity service, but different interface
|
||||
interfaces.mGxsIdService = 0;
|
||||
//
|
||||
interfaces.mGxsCirlces = 0;
|
||||
// not exposed with global variable
|
||||
interfaces.mPgpAuxUtils = 0;
|
||||
interfaces.mGxsForums = rsGxsForums;
|
||||
interfaces.mGxsChannels = rsGxsChannels;
|
||||
return true;
|
||||
}
|
||||
|
||||
} // namespace resource_api
|
Loading…
Add table
Add a link
Reference in a new issue