Added the permission mapping file
This commit is contained in:
parent
5c4df786ed
commit
a086dcc214
@ -27,16 +27,28 @@ namespace ts {
|
|||||||
//Everything over 5 is no lt (Client >= 1.3.6)
|
//Everything over 5 is no lt (Client >= 1.3.6)
|
||||||
enum LicenseType: uint8_t {
|
enum LicenseType: uint8_t {
|
||||||
_LicenseType_MIN,
|
_LicenseType_MIN,
|
||||||
LICENSE_NONE = _LicenseType_MIN,
|
LICENSE_NONE = _LicenseType_MIN, /* ServerLicenseType::SERVER_LICENSE_NONE */
|
||||||
LICENSE_HOSTING,
|
LICENSE_HOSTING, /* ServerLicenseType::SERVER_LICENSE_ATHP */
|
||||||
LICENSE_OFFLINE,
|
LICENSE_OFFLINE, /* ServerLicenseType::SERVER_LICENSE_OFFLINE */
|
||||||
LICENSE_NPL, //3
|
LICENSE_NPL, /* ServerLicenseType::SERVER_LICENSE_NPL */
|
||||||
LICENSE_UNKNOWN,
|
LICENSE_UNKNOWN, /* ServerLicenseType::SERVER_LICENSE_SDK */
|
||||||
LICENSE_PLACEHOLDER,
|
LICENSE_PLACEHOLDER, /* ServerLicenseType::SERVER_LICENSE_SDKOFFLINE */
|
||||||
LICENSE_AUTOMATIC_SERVER,
|
LICENSE_AUTOMATIC_SERVER,
|
||||||
LICENSE_AUTOMATIC_INSTANCE,
|
LICENSE_AUTOMATIC_INSTANCE,
|
||||||
_LicenseType_MAX = LICENSE_AUTOMATIC_INSTANCE,
|
_LicenseType_MAX = LICENSE_AUTOMATIC_INSTANCE,
|
||||||
};
|
};
|
||||||
|
/*
|
||||||
|
enum ServerLicenseType : uint8_t {
|
||||||
|
SERVER_LICENSE_NONE,
|
||||||
|
SERVER_LICENSE_OFFLINE,
|
||||||
|
SERVER_LICENSE_SDK,
|
||||||
|
SERVER_LICENSE_SDKOFFLINE,
|
||||||
|
SERVER_LICENSE_NPL,
|
||||||
|
SERVER_LICENSE_ATHP,
|
||||||
|
SERVER_LICENSE_AAL,
|
||||||
|
SERVER_LICENSE_DEFAULT,
|
||||||
|
};
|
||||||
|
*/
|
||||||
|
|
||||||
enum PluginTargetMode : uint8_t {
|
enum PluginTargetMode : uint8_t {
|
||||||
PLUGINCMD_CURRENT_CHANNEL = 0, //send plugincmd to all clients in current channel
|
PLUGINCMD_CURRENT_CHANNEL = 0, //send plugincmd to all clients in current channel
|
||||||
@ -81,7 +93,8 @@ namespace ts {
|
|||||||
CLIENT_INTERNAL,
|
CLIENT_INTERNAL,
|
||||||
CLIENT_WEB,
|
CLIENT_WEB,
|
||||||
CLIENT_MUSIC,
|
CLIENT_MUSIC,
|
||||||
CLIENT_TEASPEAK
|
CLIENT_TEASPEAK,
|
||||||
|
MAX
|
||||||
};
|
};
|
||||||
|
|
||||||
enum ConnectionState {
|
enum ConnectionState {
|
||||||
|
@ -32,6 +32,8 @@ namespace ts {
|
|||||||
};
|
};
|
||||||
enum PermissionType : uint16_t {
|
enum PermissionType : uint16_t {
|
||||||
undefined = (uint16_t) -1,
|
undefined = (uint16_t) -1,
|
||||||
|
|
||||||
|
permission_id_min = 0, /* we count unknown as defined permission as well */
|
||||||
unknown = (uint16_t) 0,
|
unknown = (uint16_t) 0,
|
||||||
type_begin = 1,
|
type_begin = 1,
|
||||||
|
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
#include "mysql_connection.h"
|
#include "mysql_connection.h"
|
||||||
#include "src/log/LogUtils.h"
|
#include "src/log/LogUtils.h"
|
||||||
#include <pipes/misc/http.h>
|
#include <pipes/misc/http.h>
|
||||||
|
#include <mysql/mysql.h>
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <utility>
|
#include <utility>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user