lomoco_scan.h
Go to the documentation of this file.00001 /* 00002 * lomoco - Logitech Mouse Control for Linux 00003 * 00004 * Copyright (c) 2007 by Andreas Schneider <mail@cynapses.org> 00005 * 00006 * This program is free software; you can redistribute it and/or 00007 * modify it under the terms of the GNU General Public License 00008 * as published by the Free Software Foundation; either version 2 00009 * of the License, or (at your option) any later version. 00010 * 00011 * This program is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 * GNU General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU General Public License 00017 * along with this program; if not, write to the Free Software Foundation, 00018 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00019 * 00020 * vim: ts=2 sw=2 et cindent 00021 */ 00022 00023 #ifndef _LOMOCO_SCAN_H 00024 #define _LOMOCO_SCAN_H 00025 00026 #include "lomoco_list.h" 00027 00028 #include "lomoco.h" 00029 00030 /** 00031 * @brief Get all attached and supported usb devices. 00032 * 00033 * Get all attached and supported mice and receivers. 00034 * 00035 * @param base The initialized base structure. 00036 * @param list The doubly-linked list to append found devices. 00037 * 00038 * @return The new head of the doubly-linked list. 00039 */ 00040 lomoco_list_t *lomoco_get_usb_devices(lomoco_base_t *base, lomoco_list_t *list); 00041 00042 /** 00043 * @brief Get all attached and supported devices using hiddev. 00044 * 00045 * Get all attached and supported mice and receivers using hiddev. 00046 * 00047 * @param base The initialized base structure. 00048 * @param list The doubly-linked list to append found devices. 00049 * 00050 * @return The new head of the doubly-linked list. 00051 */ 00052 lomoco_list_t *lomoco_get_hid_devices(lomoco_base_t *base, lomoco_list_t *list); 00053 00054 #endif /* _LOMOCO_SCAN_H */ 00055