[RDY] Use generated declarations in cursor.h

```cursor.h``` was created in parallel with #710 and it doesn't use new way of generating declarations. This PR fixes that.