Now uses Cursor object, rather than a pointer to one.
Now supports get_bufid(), and disassociate() methods.