Custom grc block with message queue?

Guys im trying to make a custom grc xml block. I need to connect a
message queue pointer to it, but not sure how? Do i connect it through a

parameter of through a sink of the type msg ??