Description
Leaves a Bone channel.
Callback
BONE_CALLBACK_CHANNELSUB
Notes
The function parameters are the BONEHANDLE and the channel to leave.
Example
if (bone_setcallback(BONE_CALLBACK_CHANNELSUB, callback_chansub))
printf("Unable to set callback (reason %d).\n",
bone_getlasterror());
if (bone_leavechannel(bhnd, "#bone"))
printf("Unable to leave channel (reason %d).\n",
bone_getlasterror());
void callback_chansub(BONEHANDLE bhnd, const char *channel, int errorcode)
{
printf("Subscribe/unusbscribe
to channel %s unsuccessful (reason %d).\n", channel, errorcode);
}