7.3. The Open function
prototype: static void *my_open(GHashTable *config_file);
The open function is the first function called when a plug-in is initialized. It takes one parameter of type GHashTable (from glib), a pointer to the hanlder's config hash which would have all parameters for your plug-in.
In the open function you would do what your plug-in requires to initialize access to the hardware management protocol.
Further, you would initialize the oh_handler_state elements. Allocate the handler structure, parse the plug-in parameters from the confi hash, allocate the rptcache and initialize any private data structures in your plug-in.
When done, you would return a pointer to the handler allocated for this plugin instance.