Main Page | Modules | Data Structures | Directories | File List | Data Fields | Globals

# device.c File Reference

Device enumeration and information management. More...

`#include "config.h"`
`#include <sys/types.h>`
`#include <assert.h>`
`#include <stdbool.h>`
`#include <string.h>`
`#include <discover/discover.h>`
`#include <discover/discover-conf.h>`
`#include <discover/discover-xml.h>`
`#include <discover/device.h>`
`#include <discover/utils.h>`

Go to the source code of this file.

## Functions
discover_device_t * | discover_device_find (char *discover_class, discover_error_t *status)
char * | discover_device_get_data (discover_device_t *device, char *discover_class, char *version, discover_error_t *status)
void | discover_device_copy (discover_device_t *src, discover_device_t *dst)
char * | discover_data_get_class (discover_data_t *data)
char * | discover_data_get_text (discover_data_t *data)
discover_data_t * | discover_data_get_parent (discover_data_t *data)
discover_data_t * | discover_data_get_child (discover_data_t *data)
discover_data_t * | discover_data_get_next (discover_data_t *data)
discover_data_t * | discover_data_get_prev (discover_data_t *data)
discover_data_t * | discover_data_get_first (discover_data_t *data)
discover_data_t * | discover_data_new (void)
void | discover_data_free (discover_data_t *data_tree)
char * | discover_device_get_busclass (discover_device_t *device)
char * | discover_device_get_model_id (discover_device_t *device)
char * | discover_device_get_model_name (discover_device_t *device)
char * | discover_device_get_vendor_id (discover_device_t *device)
char * | discover_device_get_vendor_name (discover_device_t *device)
discover_data_t * | discover_device_get_data_struct (discover_device_t *device)
discover_device_t * | discover_device_get_next (discover_device_t *device)
discover_device_t * | discover_device_new (void)
void | discover_device_free (discover_device_t *devices, int free_data)

## Detailed Description

Device enumeration and information management.

This file contains many device-related routines. Most of these routines are used to alter or access data pertaining to a device. These routines will likely be most interesting to people writing code against the Discover API.

Definition in file device.c.