Lines Matching defs:capability
239 /** Device got a new capability */
242 /** Device got a new capability */
954 char *capability;
957 DBUS_TYPE_STRING, &capability,
960 ctx->device_new_capability (ctx, udi, capability);
2771 * @capability: the capability name to add
2774 * Assign a capability to a device.
2776 * Returns: TRUE if the capability was added, FALSE if the device didn't exist
2780 const char *udi, const char *capability, DBusError *error)
2799 dbus_message_iter_append_basic (&iter, DBUS_TYPE_STRING, &capability);
2824 * @capability: the capability name
2827 * Check if a device has a capability. The result is undefined if the
2830 * Returns: TRUE if the device has the capability, otherwise FALSE
2833 libhal_device_query_capability (LibHalContext *ctx, const char *udi, const char *capability, DBusError *error)
2846 if (strcmp (caps[i], capability) == 0) {
2860 * @capability: the capability name
2864 * Find devices with a given capability.
2870 const char *capability, int *num_devices, DBusError *error)
2892 dbus_message_iter_append_basic (&iter, DBUS_TYPE_STRING, &capability);
3297 * @callback: the function to call when a device gains a new capability
3299 * Set the callback for when a device gains a new capability.
3315 * @callback: the function to call when a device loses a capability
3317 * Set the callback for when a device loses a capability