/* Environment variable overrides everything, for debugging. */
if ((env_path = getenv("SIGROKDECODE_DIR"))) {
- if ((ret = add_modulepath(path)) != SRD_OK) {
+ if ((ret = add_modulepath(env_path)) != SRD_OK) {
Py_Finalize();
return ret;
}
* stack).
*
* @param output_type The output type this callback will receive. Only one
- * callback per output type can be registered.
+ * callback per output type can be registered.
* @param cb The function to call.
* @param user_data Unused.
*/
}
pd_cb->output_type = output_type;
- pd_cb->callback = cb;
+ pd_cb->cb = cb;
pd_cb->user_data = user_data;
callbacks = g_slist_append(callbacks, pd_cb);
for (l = callbacks; l; l = l->next) {
pd_cb = l->data;
if (pd_cb->output_type == output_type) {
- cb = pd_cb->callback;
+ cb = pd_cb->cb;
break;
}
}