Hi

Been going through sigrok source code. It's really well written!
It looks like the hwplugins are not runtime loadable, since I see in hwplugin.c:


extern struct device_plugin saleae_logic_plugin_info;
extern struct device_plugin ols_plugin_info;
extern struct device_plugin zeroplus_logic_cube_plugin_info;

int load_hwplugins(void)
{
  plugins = g_slist_append(plugins, (gpointer *)&saleae_logic_plugin_info);
  plugins = g_slist_append(plugins, (gpointer *)&ols_plugin_info);
  plugins = g_slist_append(plugins, (gpointer
*)&zeroplus_logic_cube_plugin_info);

  return SIGROK_OK;
}

I got the impression that each plugin would be compiled as its own
shared lib and its
symbol get imported and device_plugin struct initialized during
runtime. Is this something
planned for the future?

Also, what is the reason for removing dependency on glib? Just curious.

The ganglia project has it's own simple linked list implementation,
has heavy dependency on libapr, and has runtime loadable module
concept, akin to some of the implementation details used in sigrok.
Perhaps it might be a good reference:
http://sourceforge.net/projects/ganglia/

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
sigrok-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sigrok-devel

Reply via email to