hwinfo.c File Reference

#include <time.h>
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include <libxml/xmlwriter.h>
#include <dlfcn.h>
#include "testrunnerlite.h"
#include "executor.h"
#include "hwinfo.h"
#include "log.h"

Go to the source code of this file.

Functions

LOCAL unsigned char * exec_command (const char *c)
int read_hwinfo (hw_info *hi)
void print_hwinfo (hw_info *hi)
void clean_hwinfo (hw_info *hi)


Function Documentation

void clean_hwinfo ( hw_info hi  ) 

Free the allocated data from hw_info

Parameters:
hi hw_info data

Definition at line 182 of file hwinfo.c.

LOCAL unsigned char * exec_command ( const char *  cmd  ) 

Execute the command provided by plugin

Parameters:
cmd the command
Returns:
stdout output of the command

Definition at line 86 of file hwinfo.c.

void print_hwinfo ( hw_info hi  ) 

Print hardware info

Parameters:
hi hw_info data

Definition at line 167 of file hwinfo.c.

int read_hwinfo ( hw_info hi  ) 

Obtain hardware info and save it to argument

Parameters:
hi container for hardware info
Returns:
0 if basic information can be obtained 1 otherwise

Definition at line 123 of file hwinfo.c.


Generated on Wed Nov 10 14:13:01 2010 for testrunner-lite by  doxygen 1.5.6