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.
Function Documentation
LOCAL unsigned char * exec_command |
( |
const char * |
cmd |
) |
|
Execute the command provided by plugin
- Parameters:
-
- Returns:
- stdout output of the command
Definition at line 86 of file hwinfo.c.
Print hardware info
- Parameters:
-
Definition at line 167 of file hwinfo.c.
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.