- Callback function pointer typedefs end with _t.
- Variables holding callback functions are named 'cb' everywhere.
* 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;
}
}
struct srd_pd_callback {
int output_type;
- srd_pd_output_callback_t callback;
+ srd_pd_output_callback_t cb;
void *user_data;
};