mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-07 22:22:45 -04:00
Added ServiceControl + ServiceInfo. Basics are working, but still a lot to do!
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7196 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
a4b54e1021
commit
83a78bcaee
71 changed files with 3168 additions and 209 deletions
|
@ -58,7 +58,7 @@
|
|||
|
||||
|
||||
p3BanList::p3BanList(p3LinkMgr *lm, p3NetMgr *nm)
|
||||
:p3Service(RS_SERVICE_TYPE_BANLIST), mBanMtx("p3BanList"), mLinkMgr(lm), mNetMgr(nm)
|
||||
:p3Service(), mBanMtx("p3BanList"), mLinkMgr(lm), mNetMgr(nm)
|
||||
{
|
||||
addSerialType(new RsBanListSerialiser());
|
||||
|
||||
|
@ -66,6 +66,24 @@ p3BanList::p3BanList(p3LinkMgr *lm, p3NetMgr *nm)
|
|||
}
|
||||
|
||||
|
||||
const std::string BANLIST_APP_NAME = "banlist";
|
||||
const uint16_t BANLIST_APP_MAJOR_VERSION = 1;
|
||||
const uint16_t BANLIST_APP_MINOR_VERSION = 0;
|
||||
const uint16_t BANLIST_MIN_MAJOR_VERSION = 1;
|
||||
const uint16_t BANLIST_MIN_MINOR_VERSION = 0;
|
||||
|
||||
RsServiceInfo p3BanList::getServiceInfo()
|
||||
{
|
||||
return RsServiceInfo(RS_SERVICE_TYPE_BANLIST,
|
||||
BANLIST_APP_NAME,
|
||||
BANLIST_APP_MAJOR_VERSION,
|
||||
BANLIST_APP_MINOR_VERSION,
|
||||
BANLIST_MIN_MAJOR_VERSION,
|
||||
BANLIST_MIN_MINOR_VERSION);
|
||||
}
|
||||
|
||||
|
||||
|
||||
int p3BanList::tick()
|
||||
{
|
||||
processIncoming();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue