/*

IsMyHwOK: A tool for checking how well-supported hardware is using Free drivers.
Copyright (C) 2010  Thomas Glyn Dennis

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.

*/

#include <stdlib.h>
#include <stdio.h>
#include "csv/csv.h"
#include "osstuff.h"

/* Executes lspci. Stores the output to a file and then loads it as a table. */

CsvTable *lspci (void)
{

  CsvTable *result = NULL;

  /* TODO. */

  return result;

}

/* Executes lsusb. Stores the output to a file and then loads it as a table. */

CsvTable *lsusb (void)
{

  CsvTable *result = NULL;

  /* TODO. */

  return result;

}

/* Get some information about the OS. */

CsvTable *osinfo (void)
{

  CsvTable *result = NULL;

  result = csvCreateTable (1, 3);

  if (!result) { return NULL; }

  csvEditCell (result, 0, 0, "Windows"   );
  csvEditCell (result, 0, 1, "x86/x86-64");
  csvEditCell (result, 0, 2, "Unknown"   );

  return result;

}
