r1045@llin: dpavlin | 2006-09-29 21:38:42 +0200 change low-level API to be OO (and remove various ugly cludges).