Since your kinematic seems to use your own flavour of switchable kinematics (which will not be needed when using the built in switchable kinematics feature) it's not quite as simple as copy pasting it into the 'userkins.comp' template and since you are probably better versed in C then me I have made a component using the current xyzbc-trt model, so it won't be what you want but it should give you an idea of how to adapt it to your needs.
To compile it on a RIP installation:
$ halcompile --install <your-path>/xyzbc_trt.comp
(For a deb installation you will probably need to use 'sudo' with the above.)
If you want to test this you can use the simulation config /sim/axis/vismach/5axis/table-rotary-tilting/xyzbc-trt
To do so you will need to change xyzbc-trt.ini:
#KINEMATICS = xyzbc-trt-kins sparm=identityfirst
KINEMATICS = xyzbc_trt
# not currently supported by xyzbc-trt-gui:
#HALCMD = setp xyzbc-trt-kins.x-rot-point 0
#HALCMD = setp xyzbc-trt-kins.y-rot-point 0
#HALCMD = setp xyzbc-trt-kins.z-rot-point 0
[edit]
You might also want to have a look at the /sim/axis/vismach/millturn simulation config for an application of 'userkins.comp' template with switchable kinematics. 'millturn.comp' can be found at /src/hal/components