Skip to content

Commit

Permalink
update to plugin API version 24
Browse files Browse the repository at this point in the history
  • Loading branch information
svenpaulsen committed Jan 9, 2020
1 parent c302de0 commit 1fbd9b1
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 4 deletions.
5 changes: 3 additions & 2 deletions include/teamspeak/clientlib_publicdefinitions.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ enum ConnectStatus {

enum LocalTestMode {
TEST_MODE_OFF = 0,
TEST_MODE_VOICE_LOCAL_ONLY = 1,
TEST_MODE_VOICE_LOCAL_AND_REMOTE = 2,
TEST_MODE_VOICE_LOCAL_ONLY,
TEST_MODE_VOICE_LOCAL_AND_REMOTE,
TEST_MODE_TALK_STATUS_CHANGES_ONLY
};

#endif //CLIENTLIB_PUBLICDEFINITIONS_H
1 change: 1 addition & 0 deletions include/teamspeak/public_errors_rare.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ enum Ts3RareErrorType {
ERROR_server_modal_quit = 0x040c,
ERROR_server_time_difference_too_large = 0x040f,
ERROR_server_blacklisted = 0x0410,
ERROR_server_shutdown = 0x0411,

//messages
ERROR_message_invalid_id = 0x0c00,
Expand Down
2 changes: 2 additions & 0 deletions include/teamspeak/public_rare_definitions.h
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ enum ChannelPropertiesRare {
CHANNEL_ICON_ID, //Available for all channels that are "in view", always up-to-date
CHANNEL_BANNER_GFX_URL, //Available for all channels that are "in view", always up-to-date
CHANNEL_BANNER_MODE, //Available for all channels that are "in view", always up-to-date
CHANNEL_PERMISSION_HINTS,
CHANNEL_ENDMARKER_RARE,
CHANNEL_DELETE_DELAY_DEADLINE = 127 //(for clientlibv2) expected delete time in monotonic clock seconds or 0 if nothing is expected
};
Expand Down Expand Up @@ -283,6 +284,7 @@ enum ClientPropertiesRare {
CLIENT_ACTIVE_INTEGRATIONS_INFO, //stores info from the myts server and contains the subscription info
CLIENT_MYTS_AVATAR,
CLIENT_SIGNED_BADGES,
CLIENT_PERMISSION_HINTS,
CLIENT_ENDMARKER_RARE,
CLIENT_HW_ID = 127 //(for clientlibv2) unique hardware id
};
Expand Down
19 changes: 17 additions & 2 deletions include/ts3_functions.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ struct TS3Functions {
unsigned int (*setPlaybackConfigValue)(uint64 serverConnectionHandlerID, const char* ident, const char* value);
unsigned int (*setClientVolumeModifier)(uint64 serverConnectionHandlerID, anyID clientID, float value);

/* Recording */
/* Recording status */
unsigned int (*startVoiceRecording)(uint64 serverConnectionHandlerID);
unsigned int (*stopVoiceRecording)(uint64 serverConnectionHandlerID);

Expand Down Expand Up @@ -273,7 +273,22 @@ struct TS3Functions {
unsigned int (*createBookmark)(const char* bookmarkuuid, const char* serverLabel, const char* serverAddress, const char* serverPassword, const char* nickname, const char* channel, const char* channelPassword, const char* captureProfile, const char* playbackProfile, const char* hotkeyProfile, const char* soundProfile, const char* uniqueUserId, const char* oneTimeKey, const char* phoneticName);
unsigned int (*getPermissionIDByName)(uint64 serverConnectionHandlerID, const char* permissionName, unsigned int* result);
unsigned int (*getClientNeededPermission)(uint64 serverConnectionHandlerID, const char* permissionName, int* result);
void(*notifyKeyEvent)(const char *pluginID, const char *keyIdentifier, int up_down);
void (*notifyKeyEvent)(const char *pluginID, const char *keyIdentifier, int up_down);

/* Recording */
unsigned int (*startRecording)(uint64 serverConnectionHandlerID, int multitrack, int noFileSelector, const char* path);
unsigned int (*stopRecording)(uint64 serverConnectionHandlerID);

/* Convenience */
unsigned int (*requestClientsMove)(uint64 serverConnectionHandlerID, const anyID* clientIDArray, uint64 newChannelID, const char* password, const char* returnCode);
unsigned int (*requestClientsKickFromChannel)(uint64 serverConnectionHandlerID, const anyID* clientIDArray, const char* kickReason, const char* returnCode);
unsigned int (*requestClientsKickFromServer)(uint64 serverConnectionHandlerID, const anyID* clientIDArray, const char* kickReason, const char* returnCode);
unsigned int (*requestMuteClientsTemporary)(uint64 serverConnectionHandlerID, const anyID* clientIDArray, const char* returnCode);
unsigned int (*requestUnmuteClientsTemporary)(uint64 serverConnectionHandlerID, const anyID* clientIDArray, const char* returnCode);
unsigned int (*getPermissionNameByID)(uint64 scHandlerID, unsigned int permissionID, char* result, size_t max_len);
unsigned int (*clientPropertyFlagToString)(size_t clientPropertyFlag, char** resultString);
unsigned int (*channelPropertyFlagToString)(size_t channelPropertyFlag, char** resultString);
unsigned int (*serverPropertyFlagToString)(size_t serverPropertyFlag, char** resultString);
};

#ifdef __cplusplus
Expand Down

0 comments on commit 1fbd9b1

Please sign in to comment.