Logo Search packages:      
Sourcecode: halevt version File versions  Download package


    hal_interface.h declarations for hal_interface.c
    Copyright (C) 2007  Patrice Dumas <pertusus at free dot fr>

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA


#include <libhal.h>
#include <dbus/dbus.h>
#include "match.h"
#include "parse_config.h"
#include "devices_list.h"

void halevt_device_added(LibHalContext *ctx, const char *udi);
void halevt_device_removed(LibHalContext *ctx, const char *udi);
void halevt_device_new_capability(LibHalContext *ctx, const char *udi,
                        const char *capability);
void halevt_device_lost_capability (LibHalContext *ctx, const char *udi,
                           const char *capability);
void halevt_device_property_modified(LibHalContext *ctx, const char *udi,
  const char *key, dbus_bool_t is_removed, dbus_bool_t is_added);
void halevt_device_condition(LibHalContext *ctx, const char *udi,
    const char *condition_name, const char *condition_detail);
void halevt_setup_HAL();

void halevt_check_dbus_error(DBusError *error);

void halevt_run_oninit();
int halevt_property_matches_udi (const char * property,
                         const char* value, const char *udi);
int halevt_matches (const halevt_match* match, const char *udi,
   const halevt_device *device);
char **halevt_property_value (const char* property, const char *udi,
   const halevt_device* device);
char **halevt_get_property_value(LibHalPropertyType type, const char *property, 
   const char *udi, DBusError *dbus_error_pointer);
char **halevt_get_iterator_value(const LibHalPropertyType type, 
  LibHalPropertySetIterator *iter);
int halevt_run_command(const halevt_exec *exec, char const *udi, 
  const halevt_device* device);


Generated by  Doxygen 1.6.0   Back to index