C Extension Style

When writing a C extension that wraps a C struct is it usual to set i
vars on the class and copy the values from the struct (with
rb_iv_set/get) or just write accessor functions?

Henry