2007-12-11 19:54:42 -05:00
|
|
|
#ifndef RS_SERVICE_IDS_H
|
|
|
|
#define RS_SERVICE_IDS_H
|
|
|
|
|
|
|
|
/*
|
|
|
|
* libretroshare/src/serialiser: rsserviceids.h
|
|
|
|
*
|
|
|
|
* RetroShare Serialiser.
|
|
|
|
*
|
|
|
|
* Copyright 2007-2008 by Robert Fernie.
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Library General Public
|
|
|
|
* License Version 2 as published by the Free Software Foundation.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Library General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Library General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
|
|
|
* USA.
|
|
|
|
*
|
|
|
|
* Please report all bugs and problems to "retroshare@lunamutt.com".
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <inttypes.h>
|
|
|
|
|
|
|
|
/* Single place for Cache/Service Ids (uint16_t)
|
|
|
|
* to 64K of them....
|
|
|
|
*
|
|
|
|
* Some Services/Caches are only msgs or caches...
|
|
|
|
* but they need to be combined so that the messages/caches
|
|
|
|
* can easily be aligned.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* These are Cache Only */
|
|
|
|
const uint16_t RS_SERVICE_TYPE_FILE_INDEX = 0x0001;
|
|
|
|
|
|
|
|
/* These are Services only */
|
|
|
|
const uint16_t RS_SERVICE_TYPE_DISC = 0x0011;
|
2008-02-05 08:45:04 -05:00
|
|
|
const uint16_t RS_SERVICE_TYPE_CHAT = 0x0012;
|
|
|
|
const uint16_t RS_SERVICE_TYPE_MSG = 0x0013;
|
2009-02-28 13:19:00 -05:00
|
|
|
const uint16_t RS_SERVICE_TYPE_TURTLE = 0x0014;
|
2009-12-13 16:59:26 -05:00
|
|
|
const uint16_t RS_SERVICE_TYPE_TUNNEL = 0x0015;
|
2007-12-11 19:54:42 -05:00
|
|
|
|
2011-12-08 15:15:08 -05:00
|
|
|
/* BanList Still Testing at the moment - Service Only */
|
|
|
|
const uint16_t RS_SERVICE_TYPE_BANLIST = 0x0101;
|
2011-08-03 13:43:26 -04:00
|
|
|
|
|
|
|
/* Caches based on p3distrib (Cache Only)
|
|
|
|
* Unfortunately, noone changed the DUMMY IDS... so we are stuck with them!
|
|
|
|
*/
|
|
|
|
const uint16_t RS_SERVICE_TYPE_DISTRIB = 0xf110;
|
|
|
|
const uint16_t RS_SERVICE_TYPE_FORUM = 0xf120;
|
|
|
|
const uint16_t RS_SERVICE_TYPE_CHANNEL = 0xf130;
|
|
|
|
const uint16_t RS_SERVICE_TYPE_CHANNEL_SOCKET = 0xf140;
|
|
|
|
|
|
|
|
/* Status - Service only */
|
|
|
|
const uint16_t RS_SERVICE_TYPE_STATUS = 0xf020;
|
|
|
|
|
2012-02-13 13:22:35 -05:00
|
|
|
/***************** IDS ALLOCATED FOR PLUGINS ******************/
|
|
|
|
|
|
|
|
const uint16_t RS_SERVICE_TYPE_PLUGIN_ARADO_ID = 0x0401;
|
|
|
|
const uint16_t RS_SERVICE_TYPE_PLUGIN_QCHESS_ID = 0x0402;
|
2012-09-04 19:53:04 -04:00
|
|
|
const uint16_t RS_SERVICE_TYPE_PLUGIN_FEEDREADER = 0x0403;
|
2012-02-13 13:22:35 -05:00
|
|
|
|
2007-12-11 19:54:42 -05:00
|
|
|
|
2008-02-05 08:45:04 -05:00
|
|
|
/****************** BELOW ARE ONLY THEORETICAL (CAN BE CHANGED) *****/
|
2008-06-07 12:06:21 -04:00
|
|
|
/*
|
|
|
|
* If you are planning on making a new service....
|
|
|
|
* Test it out with an ID in the range from 0xf000 - 0xffff
|
|
|
|
* And Change the ID everytime you make significant changes to the
|
|
|
|
* data structures...
|
|
|
|
*
|
|
|
|
* eg.
|
|
|
|
* const uint16_t RS_SERVICE_TYPE_DISTRIB_O1 = 0xf110; // First Revision.
|
|
|
|
* const uint16_t RS_SERVICE_TYPE_DISTRIB_O2 = 0xf111; // Second Revision.
|
|
|
|
* const uint16_t RS_SERVICE_TYPE_DISTRIB = 0xf112; // Final Revision.
|
|
|
|
*
|
|
|
|
* This minimises the chances of your new serialisers messing with
|
|
|
|
* other existing, older, or proposed services.
|
|
|
|
*
|
|
|
|
* ONLY MOVE your Id once the service has been finalised.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*! for Qblog service (Cache Only) */
|
|
|
|
const uint16_t RS_SERVICE_TYPE_QBLOG = 0xf010;
|
2007-12-11 19:54:42 -05:00
|
|
|
|
2011-08-03 13:43:26 -04:00
|
|
|
/* TEST VOIP - Service only */
|
2012-07-27 11:03:16 -04:00
|
|
|
// NOT SURE WHATS HAPPENING WITH THIS ONE?
|
|
|
|
// SHOULD BE DEFINED IN PLUGIN SECTION!
|
|
|
|
//const uint16_t RS_SERVICE_TYPE_VOIP = 0xf011;
|
2008-04-25 14:37:57 -04:00
|
|
|
|
2012-02-13 13:22:35 -05:00
|
|
|
/* Status - Service only */
|
|
|
|
//const uint16_t RS_SERVICE_TYPE_STATUS = 0xf020;
|
|
|
|
|
2008-06-07 12:06:21 -04:00
|
|
|
/* Proxy - Service only */
|
|
|
|
const uint16_t RS_SERVICE_TYPE_PROXY = 0xf030;
|
2007-12-11 19:54:42 -05:00
|
|
|
|
2011-11-21 02:49:38 -05:00
|
|
|
/* DSDV Testing at the moment - Service Only */
|
|
|
|
const uint16_t RS_SERVICE_TYPE_DSDV = 0xf050;
|
2008-06-07 12:06:21 -04:00
|
|
|
|
2012-06-21 19:23:46 -04:00
|
|
|
/* Bandwidth Testing at the moment - Service Only */
|
|
|
|
const uint16_t RS_SERVICE_TYPE_BWCTRL = 0xf060;
|
|
|
|
|
2011-11-23 11:40:32 -05:00
|
|
|
|
2012-02-04 09:16:39 -05:00
|
|
|
/* New Cache Services */
|
2012-06-13 20:27:28 -04:00
|
|
|
const uint16_t RS_SERVICE_TYPE_IDENTITY = 0xf100;
|
2012-02-04 09:16:39 -05:00
|
|
|
const uint16_t RS_SERVICE_TYPE_PHOTO = 0xf101;
|
|
|
|
const uint16_t RS_SERVICE_TYPE_WIKI = 0xf102;
|
|
|
|
const uint16_t RS_SERVICE_TYPE_WIRE = 0xf103;
|
2012-06-13 20:27:28 -04:00
|
|
|
const uint16_t RS_SERVICE_TYPE_FORUMSV2 = 0xf104;
|
2012-07-01 19:00:54 -04:00
|
|
|
const uint16_t RS_SERVICE_TYPE_POSTED = 0xf105;
|
2012-02-13 13:22:35 -05:00
|
|
|
|
|
|
|
//const uint16_t RS_SERVICE_TYPE_DISTRIB = 0xf110;
|
|
|
|
//const uint16_t RS_SERVICE_TYPE_FORUM = 0xf120;
|
|
|
|
//const uint16_t RS_SERVICE_TYPE_CHANNEL = 0xf130;
|
|
|
|
//const uint16_t RS_SERVICE_TYPE_CHANNEL_SOCKET = 0xf140;
|
2011-11-23 11:40:32 -05:00
|
|
|
|
2008-06-07 12:06:21 -04:00
|
|
|
/* Games/External Apps - Service Only */
|
|
|
|
const uint16_t RS_SERVICE_TYPE_GAME_LAUNCHER = 0xf200;
|
2008-06-24 19:12:25 -04:00
|
|
|
const uint16_t RS_SERVICE_TYPE_PORT = 0xf201;
|
2008-01-21 04:22:42 -05:00
|
|
|
|
2008-06-24 19:12:25 -04:00
|
|
|
/* Example Games (NOT USED YET!) */
|
2008-01-21 04:22:42 -05:00
|
|
|
/* Board Games */
|
2008-06-24 19:12:25 -04:00
|
|
|
const uint16_t RS_SERVICE_TYPE_GAME_QTCHESS = 0xf211;
|
|
|
|
const uint16_t RS_SERVICE_TYPE_GAME_QGO = 0xf212;
|
2008-01-21 04:22:42 -05:00
|
|
|
|
|
|
|
/* Card Games */
|
2008-06-24 19:12:25 -04:00
|
|
|
const uint16_t RS_SERVICE_TYPE_GAME_BIGTWO = 0xf213;
|
|
|
|
const uint16_t RS_SERVICE_TYPE_GAME_POKER = 0xf214;
|
2008-01-21 04:22:42 -05:00
|
|
|
|
2012-05-01 16:52:07 -04:00
|
|
|
/* Rs Network Exchange Service */
|
|
|
|
const uint16_t RS_SERVICE_TYPE_NXS = 0xf300;
|
|
|
|
|
2008-01-21 04:22:42 -05:00
|
|
|
|
2012-02-13 13:22:35 -05:00
|
|
|
/***************** IDS ALLOCATED FOR PLUGINS ******************/
|
2008-01-21 04:22:42 -05:00
|
|
|
|
2012-02-13 13:22:35 -05:00
|
|
|
const uint16_t RS_SERVICE_TYPE_PLUGIN_ARADO_TEST_ID1 = 0xf401;
|
|
|
|
const uint16_t RS_SERVICE_TYPE_PLUGIN_QCHESS_TEST_ID1 = 0xf402;
|
2008-01-21 04:22:42 -05:00
|
|
|
|
2012-05-01 16:52:07 -04:00
|
|
|
// test
|
|
|
|
const uint16_t RS_SERVICE_TYPE_PLUGIN_SIMPLE_FORUM = 0xf403;
|
2007-12-11 19:54:42 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* RS_SERVICE_IDS_H */
|
|
|
|
|
|
|
|
|