Ok this actually doesn't work on windows :(  For some reason I'm getting an 'undefined reference' error because the deviceDescriptorStruct is in the uavobjectutil plugin and this code is in the uploader plugin.  I don't understand why it ends up working on OSX.

Is there a way to pull in static methods like this?  Do I need to use the aggregation system and create an instance of the object?

@guilhermito @elafargue you guys have more experience with plugins so maybe you can comment