mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-20 23:10:39 -04:00
added blogs
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2182 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
7fc84d7ceb
commit
cf6d69c66e
7 changed files with 2830 additions and 68 deletions
|
@ -171,6 +171,40 @@ virtual RsItem * deserialise(void *data, uint32_t *size);
|
|||
|
||||
/**************************************************************************/
|
||||
|
||||
/**************************************************************************/
|
||||
|
||||
class RsBlogMsg: public RsItem
|
||||
{
|
||||
public:
|
||||
RsBlogMsg()
|
||||
:RsItem(RS_PKT_VERSION_SERVICE, RS_SERVICE_TYPE_QBLOG,
|
||||
RS_PKT_SUBTYPE_DEFAULT)
|
||||
{ return; }
|
||||
virtual ~RsBlogMsg();
|
||||
virtual void clear();
|
||||
|
||||
RsTlvBinaryData cert; /* Mandatory */
|
||||
RsTlvFileSet files; /* Mandatory */
|
||||
RsTlvBinaryData sign; /* Mandatory */
|
||||
};
|
||||
|
||||
class RsBlogMsgSerialiser: public RsSerialType
|
||||
{
|
||||
public:
|
||||
RsBlogMsgSerialiser()
|
||||
:RsSerialType(RS_PKT_VERSION_SERVICE, RS_SERVICE_TYPE_QBLOG)
|
||||
{ return; }
|
||||
|
||||
virtual ~RsBlogMsgSerialiser();
|
||||
|
||||
virtual uint32_t size(RsItem *);
|
||||
virtual bool serialise (RsItem *item, void *data, uint32_t *size);
|
||||
virtual RsItem * deserialise(void *data, uint32_t *size);
|
||||
|
||||
};
|
||||
|
||||
/**************************************************************************/
|
||||
|
||||
#endif /* RS_SERVICE_ITEMS_H */
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue