Browse code

corex: added fixup free functions in module exports

Daniel-Constantin Mierla authored on 30/09/2022 08:52:25
Showing 1 changed files
... ...
@@ -112,59 +112,59 @@ static cmd_export_t cmds[]={
112 112
 	{"append_branch", (cmd_function)w_append_branch, 0, 0,
113 113
 		0, REQUEST_ROUTE | FAILURE_ROUTE },
114 114
 	{"append_branch", (cmd_function)w_append_branch, 1, fixup_spve_null,
115
-		0, REQUEST_ROUTE | FAILURE_ROUTE },
115
+		fixup_free_spve_null, REQUEST_ROUTE | FAILURE_ROUTE },
116 116
 	{"append_branch", (cmd_function)w_append_branch, 2, fixup_spve_spve,
117
-		0, REQUEST_ROUTE | FAILURE_ROUTE },
117
+		fixup_free_spve_spve, REQUEST_ROUTE | FAILURE_ROUTE },
118 118
 	{"send_udp", (cmd_function)w_send_udp, 0, 0,
119 119
 		0, REQUEST_ROUTE | FAILURE_ROUTE },
120 120
 	{"send_udp", (cmd_function)w_send_udp, 1, fixup_spve_null,
121
-		0, REQUEST_ROUTE | FAILURE_ROUTE },
121
+		fixup_free_spve_null, REQUEST_ROUTE | FAILURE_ROUTE },
122 122
 	{"send_tcp", (cmd_function)w_send_tcp, 0, 0,
123 123
 		0, REQUEST_ROUTE | FAILURE_ROUTE },
124 124
 	{"send_tcp", (cmd_function)w_send_tcp, 1, fixup_spve_null,
125
-		0, REQUEST_ROUTE | FAILURE_ROUTE },
125
+		fixup_free_spve_null, REQUEST_ROUTE | FAILURE_ROUTE },
126 126
 	{"send_data", (cmd_function)w_send_data, 2, fixup_spve_spve,
127
-		0, ANY_ROUTE },
127
+		fixup_free_spve_spve, ANY_ROUTE },
128 128
 	{"sendx", (cmd_function)w_sendx, 3, fixup_spve_all,
129
-		0, ANY_ROUTE },
129
+		fixup_free_spve_all, ANY_ROUTE },
130 130
 	{"is_incoming",    (cmd_function)nio_check_incoming, 0, 0,
131 131
 		0, ANY_ROUTE },
132 132
 	{"msg_iflag_set", (cmd_function)w_msg_iflag_set,       1, fixup_spve_null,
133
-		0, ANY_ROUTE },
133
+		fixup_free_spve_null, ANY_ROUTE },
134 134
 	{"msg_iflag_reset", (cmd_function)w_msg_iflag_reset,   1, fixup_spve_null,
135
-		0, ANY_ROUTE },
135
+		fixup_free_spve_null, ANY_ROUTE },
136 136
 	{"msg_iflag_is_set", (cmd_function)w_msg_iflag_is_set, 1, fixup_spve_null,
137
-		0, ANY_ROUTE },
137
+		fixup_free_spve_null, ANY_ROUTE },
138 138
 	{"file_read", (cmd_function)w_file_read,   2, fixup_file_op,
139 139
 		0, ANY_ROUTE },
140 140
 	{"file_write", (cmd_function)w_file_write, 2, fixup_spve_spve,
141
-		0, ANY_ROUTE },
142
-	{"setxflag", (cmd_function)w_setxflag,          1,fixup_igp_null,
143
-		0, ANY_ROUTE },
144
-	{"resetxflag", (cmd_function)w_resetxflag,      1,fixup_igp_null,
145
-		0, ANY_ROUTE },
146
-	{"isxflagset", (cmd_function)w_isxflagset,      1,fixup_igp_null,
147
-		0, ANY_ROUTE },
141
+		fixup_free_spve_spve, ANY_ROUTE },
142
+	{"setxflag", (cmd_function)w_setxflag,          1, fixup_igp_null,
143
+		fixup_free_igp_null, ANY_ROUTE },
144
+	{"resetxflag", (cmd_function)w_resetxflag,      1, fixup_igp_null,
145
+		fixup_free_igp_null, ANY_ROUTE },
146
+	{"isxflagset", (cmd_function)w_isxflagset,      1, fixup_igp_null,
147
+		fixup_free_igp_null, ANY_ROUTE },
148 148
 	{"set_send_socket", (cmd_function)w_set_send_socket, 1, fixup_spve_null,
149
-		0, ANY_ROUTE },
149
+		fixup_free_spve_null, ANY_ROUTE },
150 150
 	{"set_send_socket_name", (cmd_function)w_set_send_socket_name, 1, fixup_spve_null,
151
-		0, ANY_ROUTE },
151
+		fixup_free_spve_null, ANY_ROUTE },
152 152
 	{"set_recv_socket", (cmd_function)w_set_recv_socket, 1, fixup_spve_null,
153
-		0, ANY_ROUTE },
153
+		fixup_free_spve_null, ANY_ROUTE },
154 154
 	{"set_recv_socket_name", (cmd_function)w_set_recv_socket_name, 1, fixup_spve_null,
155
-		0, ANY_ROUTE },
155
+		fixup_free_spve_null, ANY_ROUTE },
156 156
 	{"set_source_address", (cmd_function)w_set_source_address, 1, fixup_spve_null,
157
-		0, ANY_ROUTE },
157
+		fixup_free_spve_null, ANY_ROUTE },
158 158
 	{"via_add_srvid", (cmd_function)w_via_add_srvid, 1, fixup_igp_null,
159
-		0, ANY_ROUTE },
159
+		fixup_free_igp_null, ANY_ROUTE },
160 160
 	{"via_add_xavp_params", (cmd_function)w_via_add_xavp_params, 1, fixup_igp_null,
161
-		0, ANY_ROUTE },
161
+		fixup_free_igp_null, ANY_ROUTE },
162 162
 	{"via_use_xavp_fields", (cmd_function)w_via_use_xavp_fields, 1, fixup_igp_null,
163
-		0, ANY_ROUTE },
163
+		fixup_free_igp_null, ANY_ROUTE },
164 164
 	{"is_faked_msg", (cmd_function)w_is_faked_msg, 0, 0,
165 165
 		0, ANY_ROUTE },
166 166
 	{"is_socket_name", (cmd_function)w_is_socket_name, 1, fixup_spve_null,
167
-		0, ANY_ROUTE },
167
+		fixup_free_spve_null, ANY_ROUTE },
168 168
 
169 169
 	{0, 0, 0, 0, 0, 0}
170 170
 };