Change DSExample Plugin Name/ Compile Multiple DSExample Plugins

I want to compile and install multiple versions of DSExample plugin and use them together in the same pipeline, each with their own functionality. How to easy change their names so as to avoid clash?

Kind of like:

dsexample = gst_element_factory_make (“dsexample”, “ds-example”);
dsexample1 = gst_element_factory_make (“dsexample1”, “ds-example1”);
dsexample_final = gst_element_factory_make (“dsexamplefinal”, “ds-examplef”);

All DeepStream plugins are gstreamer plugins. Different plugins should have different classes and names. The basic rules of gstreamer plugin can be found. The Basics of Writing a Plugin (gstreamer.freedesktop.org)

Based on the knowledge above, you can refer to Register new libnvdsgst_newplugin.so - Intelligent Video Analytics / DeepStream SDK - NVIDIA Developer Forums for how to change the name of the plugin to get the new plugin(the class name, base name and library name should be aligned)