Skip to content

Commit 41dfb1c

Browse files
committed
fix: unpack enum function names in event impl generator
1 parent 447666d commit 41dfb1c

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

other/event_tooling/generate_event_c.cpp

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -80,27 +80,27 @@ std::string bin_unpack_name_from_type(const std::string& type) {
8080
} else if (type == "bool") {
8181
return "bin_unpack_bool";
8282
} else if (type == "Tox_User_Status") {
83-
return "tox_unpack_user_status";
83+
return "tox_user_status_unpack";
8484
} else if (type == "Tox_Conference_Type") {
85-
return "tox_unpack_conference_type";
85+
return "tox_conference_type_unpack";
8686
} else if (type == "Tox_Message_Type") {
87-
return "tox_unpack_message_type";
87+
return "tox_message_type_unpack";
8888
} else if (type == "Tox_File_Control") {
89-
return "tox_unpack_file_control";
89+
return "tox_file_control_unpack";
9090
} else if (type == "Tox_Connection") {
91-
return "tox_unpack_connection";
91+
return "tox_connection_unpack";
9292
} else if (type == "Tox_Group_Privacy_State") {
93-
return "tox_unpack_group_privacy_state";
93+
return "tox_group_privacy_state_unpack";
9494
} else if (type == "Tox_Group_Voice_State") {
95-
return "tox_unpack_group_voice_state";
95+
return "tox_group_voice_state_unpack";
9696
} else if (type == "Tox_Group_Topic_Lock") {
97-
return "tox_unpack_group_topic_lock";
97+
return "tox_group_topic_lock_unpack";
9898
} else if (type == "Tox_Group_Join_Fail") {
99-
return "tox_unpack_group_join_fail";
99+
return "tox_group_join_fail_unpack";
100100
} else if (type == "Tox_Group_Mod_Event") {
101-
return "tox_unpack_group_mod_event";
101+
return "tox_group_mod_event_unpack";
102102
} else if (type == "Tox_Group_Exit_Type") {
103-
return "tox_unpack_group_exit_type";
103+
return "tox_group_exit_type_unpack";
104104
} else {
105105
std::cerr << "unknown type " << type << "\n";
106106
exit(1);

0 commit comments

Comments
 (0)