/***************************************************************************
*
* devinfo_misc : misc devices
*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*
* Licensed under the Academic Free License version 2.1
*
**************************************************************************/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <stdio.h>
#include <string.h>
#include <libdevinfo.h>
#include "../osspec.h"
#include "../logger.h"
#include "../hald.h"
#include "../hald_dbus.h"
#include "../device_info.h"
#include "../util.h"
#include "devinfo_misc.h"
NULL,
NULL,
NULL,
NULL,
};
NULL,
NULL,
NULL,
NULL,
};
NULL,
NULL,
NULL,
NULL,
};
NULL,
NULL,
NULL,
NULL,
};
static HalDevice *
{
return (NULL);
}
d = hal_device_new ();
hal_device_set_udi (d, "/org/freedesktop/Hal/devices/computer");
}
hal_device_property_set_bool(d, "power_management.can_hibernate",
hal_device_property_set_bool(d, "power_management.can_suspend",
hal_device_add_capability(d, "button");
/*
* Let computer be in TDL while synthesizing all other events
* because some may write to the object
*/
hal_device_store_add (hald_get_tdl (), d);
/* all devinfo devices belong to the 'local' branch */
local_d = hal_device_new ();
return (local_d);
}
static HalDevice *
char *device_type)
{
HalDevice *d;
return (NULL);
}
d = hal_device_new();
hal_device_add_capability(d, "input");
hal_device_add_capability(d, "input.keyboard");
hal_device_add_capability(d, "input.keys");
hal_device_add_capability(d, "button");
hal_device_property_set_string(d, "input.originating_device",
hal_device_get_udi(d));
"%s_logicaldev_input", hal_device_get_udi(d));
hal_device_set_udi(d, udi);
return (d);
}
static HalDevice *
char *device_type)
{
HalDevice *d;
return (NULL);
}
d = hal_device_new();
hal_device_add_capability(d, "input");
hal_device_add_capability(d, "input.mouse");
hal_device_property_set_string(d, "input.originating_device",
hal_device_get_udi(d));
"%s_logicaldev_input", hal_device_get_udi(d));
hal_device_set_udi(d, udi);
return (d);
}
static HalDevice *
{
char *driver_name;
const char *parent_path;
HalDevice *d;
/* ignore all children of the 'pseudo' node except lofi */
if ((parent_path != NULL) &&
if ((driver_name != NULL) &&
return (NULL);
}
}
}
d = hal_device_new ();
return (d);
}