int bone_setcallback(int category, void *handler);

Description
Sets a callback.

Callback
None (returns immediately)

Notes
The parameters are the callback type and function name.
Setting a callback with an invalid parameter list will cause your application to crash.  See bone.h for a list of callback parameters.

Example

if (bone_setcallback(BONE_CALLBACK_LOGIN, callback_login))
    printf("Unable to set callback (reason %d).\n", bone_getlasterror());

void callback_login(BONEHANDLE bnd, int errorcode)
{
    if (errorcode)
    {
        printf("Unable to login to Bone (reason: %d).",errorcode);
        exit(1);
    }
}