[Vala] vala LibUSB : get_device_list



hello,

any idea how to compile code below?

/* valac --pkg libusb-1.0 TestLibUsb.vala */
using LibUSB;
namespace TestLibUSb
{

  public static class TestLibUSb
  {
    static int main (string[] args)
    {
      Context       context = null;
      Device[]      devices = null;
      Context.init  (out context);
      context.get_device_list(out devices);
      return 0;
    }
  }
}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]