Skip to content

Commit 2457125

Browse files
committed
cleanup: align group send err enum order
1 parent b03b571 commit 2457125

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

toxcore/tox.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4533,6 +4533,11 @@ typedef enum Tox_Err_Group_Send_Private_Message {
45334533
*/
45344534
TOX_ERR_GROUP_SEND_PRIVATE_MESSAGE_EMPTY,
45354535

4536+
/**
4537+
* The message type is invalid.
4538+
*/
4539+
TOX_ERR_GROUP_SEND_PRIVATE_MESSAGE_BAD_TYPE,
4540+
45364541
/**
45374542
* The caller does not have the required permissions to send group messages.
45384543
*/
@@ -4548,11 +4553,6 @@ typedef enum Tox_Err_Group_Send_Private_Message {
45484553
*/
45494554
TOX_ERR_GROUP_SEND_PRIVATE_MESSAGE_DISCONNECTED,
45504555

4551-
/**
4552-
* The message type is invalid.
4553-
*/
4554-
TOX_ERR_GROUP_SEND_PRIVATE_MESSAGE_BAD_TYPE,
4555-
45564556
} Tox_Err_Group_Send_Private_Message;
45574557

45584558
const char *tox_err_group_send_private_message_to_string(Tox_Err_Group_Send_Private_Message value);

toxcore/tox_api.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1340,6 +1340,9 @@ const char *tox_err_group_send_private_message_to_string(Tox_Err_Group_Send_Priv
13401340
case TOX_ERR_GROUP_SEND_PRIVATE_MESSAGE_EMPTY:
13411341
return "TOX_ERR_GROUP_SEND_PRIVATE_MESSAGE_EMPTY";
13421342

1343+
case TOX_ERR_GROUP_SEND_PRIVATE_MESSAGE_BAD_TYPE:
1344+
return "TOX_ERR_GROUP_SEND_PRIVATE_MESSAGE_BAD_TYPE";
1345+
13431346
case TOX_ERR_GROUP_SEND_PRIVATE_MESSAGE_PERMISSIONS:
13441347
return "TOX_ERR_GROUP_SEND_PRIVATE_MESSAGE_PERMISSIONS";
13451348

@@ -1348,9 +1351,6 @@ const char *tox_err_group_send_private_message_to_string(Tox_Err_Group_Send_Priv
13481351

13491352
case TOX_ERR_GROUP_SEND_PRIVATE_MESSAGE_DISCONNECTED:
13501353
return "TOX_ERR_GROUP_SEND_PRIVATE_MESSAGE_DISCONNECTED";
1351-
1352-
case TOX_ERR_GROUP_SEND_PRIVATE_MESSAGE_BAD_TYPE:
1353-
return "TOX_ERR_GROUP_SEND_PRIVATE_MESSAGE_BAD_TYPE";
13541354
}
13551355

13561356
return "<invalid Tox_Err_Group_Send_Private_Message>";

0 commit comments

Comments
 (0)