mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-09 01:25:17 -04:00
Added new libretroshare interface for switching between Operating Mode.
This is so people can use RS in limited bandwidth or background modes. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5887 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
fd723bcea7
commit
696e7735a1
3 changed files with 124 additions and 0 deletions
|
@ -117,6 +117,12 @@ extern RsServerConfig *rsConfig;
|
|||
#define RS_CONFIG_ADVANCED 0x0101
|
||||
|
||||
|
||||
#define RS_OPMODE_FULL 0x0001
|
||||
#define RS_OPMODE_NOTURTLE 0x0002
|
||||
#define RS_OPMODE_GAMING 0x0004
|
||||
#define RS_OPMODE_MINIMAL 0x0008
|
||||
|
||||
|
||||
class RsConfigStartup
|
||||
{
|
||||
public:
|
||||
|
@ -267,6 +273,14 @@ virtual bool getConfigurationOption(uint32_t key, std::string &opt) = 0;
|
|||
virtual bool setConfigurationOption(uint32_t key, const std::string &opt) = 0;
|
||||
|
||||
|
||||
/* Operating Mode */
|
||||
virtual uint32_t getOperatingMode() = 0;
|
||||
virtual bool setOperatingMode(uint32_t opMode) = 0;
|
||||
|
||||
/* Data Rate Control - to be moved here */
|
||||
virtual int SetDataRates( int downKb, int upKb ) = 0;
|
||||
virtual int GetDataRates( float &inKb, float &outKb ) = 0;
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue