In reply to Thirumalesh Kumar:
Rather than have seperate set_callback_mode() and get_callback_mode(), someone came up with a scheme that calling constraint_mode() argument with a value other than 0 or 1, or no argument, is the get_ mode of the function. When you create a callback it is initially enabled.