>> If so, then what you did for slave_channel_id_ptr can be done for master_channel_id_ptr.
Or you can just set it to NULL if it's unused.
Btw, I'm not sure whether the accepted posts answer your question. Did you try them out ? Did they do what you expected ?