BONE_CALLBACK_CREATEUSER

Description
Called to report the outcome of bone_createuser().  Note that the BONEHANDLE is destroyed after this is called.  See bone_createuser() for more information.

Example

bone_setcallback(BONE_CALLBACK_CREATEUSER, callback_usercreate);

BONEHANDLE bnd;
bnd = bone_create();
if (!bnd)
{
    printf("Unable to create BONEHANDLE.\n");
    exit(1);
}
else
{
    if (bone_createuser(bnd,"boneuser","bonester@imatowns.com"))
        printf("Unable to create user (reason %d).\n",bone_getlasterror());
}
 
 

void callback_usercreate(BONEHANDLE bnd, int errorcode)
{
    if (errorcode)
    {
        printf("Unable to create  Bone user (reason: %d).",errorcode);
    }
}