How to pass information from deepstream - app to customized gstreamer plugin ?

I want to pass certain information to the customized gstreamer plugin based on gstdsexample from the deepstream-app-main files. What is the best way to do this? Information can be of any kind - a class object, vectors, strings etc.

Not very clear about your question, gstdsexample is just a gstreamer plugin, you can use it as other GST plugins.
pls refer