<div dir="ltr">Hi - I'm new to the libparted. I've built it (Ver 3.1) on Xubuntu 3.11 VM (running at MacBook OS X 10.9.1) and tried to request a list of devices:<div><br></div><div>#include <iostream></div><div>
#include "parted/parted.h"<br></div><div><br></div><div>using std::cout;</div><div>using std::endl;</div><div><br></div><div>int main()</div><div>{</div><div>  unsigned count = 0;</div><div>  PedDevice* pd = NULL;</div>
<div>  ped_device_probe_all();</div><div>  while (true)</div><div>  {</div><div>    pd = ped_device_get_next(pd);</div><div>    if (pd != NULL)</div><div>    {</div><div>      cout << "# " << count << endl;</div>
<div>      // ......</div><div>      ++count;</div><div>    }</div><div>    else</div><div>    {</div><div>      break;</div><div>    }</div><div>  }</div><div>  cout << "Found: " << count << endl;</div>
<div>}</div><div><br></div><div>However, it doesn't see any devices, the program returns "Found: 0"</div><div><br></div><div>Please help,</div><div>Thanks,</div><div>Aleksey</div><div><br></div></div>