test2.c File Reference

#include <assert.h>
#include <async.h>
#include <stdio.h>
#include <errno.h>
#include <str_error.h>
#include <ddf/driver.h>
#include <ddf/log.h>

Go to the source code of this file.

Defines

#define NAME   "test2"

Functions

int main (int argc, char *argv[])
 Main entry point.
static int postponed_birth (void *arg)
 Add child devices after some sleep.
static int register_fun_verbose (ddf_dev_t *parent, const char *message, const char *name, const char *match_id, int match_score)
 Register child and inform user about it.
static int test2_add_device (ddf_dev_t *dev)

Variables

static driver_ops_t driver_ops
static driver_t test2_driver


Detailed Description

Definition in file test2.c.


Function Documentation

static int postponed_birth ( void *  arg  )  [static]

Add child devices after some sleep.

Parameters:
arg Parent device structure (ddf_dev_t *).
Returns:
Always EOK.

Definition at line 100 of file test2.c.

static int register_fun_verbose ( ddf_dev_t parent,
const char *  message,
const char *  name,
const char *  match_id,
int  match_score 
) [static]

Register child and inform user about it.

Parameters:
parent Parent device.
message Message for the user.
name Device name.
match_id Device match id.
score Device match score.

Definition at line 61 of file test2.c.


Generated on Thu Jun 2 07:45:52 2011 for HelenOS/USB by  doxygen 1.4.7