matrix: add register/unregister function
matrix: add register/unregister function

Former-commit-id: 2cac293ccb4c4a4aeea8c8d034c708db833790b6 [formerly 62df30f687ba19c4ac04d90507720a82f830439f]
Former-commit-id: 5ba93c80e82024a8799bd1971697b2897ecd5dfb
haste/ivar2,torhve/ivar2,torhve/ivar2,torhve/ivar2