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 "testdefinitiondatatypes.h"
#include <sys/time.h>
#include <libxml/xmlstring.h>
#include <libxml/list.h>
#include "executor.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 183 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 87 of file hwinfo.c.

void print_hwinfo ( hw_info hi  ) 

Print hardware info

Parameters:
hi hw_info data

Definition at line 168 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 124 of file hwinfo.c.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines
Generated on Thu Jan 27 07:39:35 2011 for testrunner-lite by  doxygen 1.6.3