evemu.h | evemu.h | |||
---|---|---|---|---|
/************************************************************************** *** | /************************************************************************** *** | |||
* | * | |||
* evemu - Kernel device emulation | * evemu - Kernel device emulation | |||
* | * | |||
* Copyright (C) 2010, 2011 Canonical Ltd. | * Copyright (C) 2010-2012 Canonical Ltd. | |||
* | * | |||
* This program is free software: you can redistribute it and/or modify it | * This library is free software: you can redistribute it and/or modify it | |||
* under the terms of the GNU General Public License as published by the | * under the terms of the GNU Lesser General Public License version 3 | |||
* Free Software Foundation, either version 3 of the License, or (at your | * as published by the Free Software Foundation. | |||
* option) any later version. | * | |||
* | * This library is distributed in the hope that it will be useful, but | |||
* This program is distributed in the hope that it will be useful, but | * WITHOUT ANY WARRANTY; without even the implied warranties of | |||
* WITHOUT ANY WARRANTY; without even the implied warranty of | * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | * PURPOSE. See the GNU Lesser General Public License for more details. | |||
* General Public License for more details. | ||||
* | * | |||
* You should have received a copy of the GNU General Public License along | * You should have received a copy of the GNU Lesser General Public License | |||
* with this program. If not, see <http://www.gnu.org/licenses/>. | * along with this library. If not, see <http://www.gnu.org/licenses/>. | |||
* | * | |||
* Copyright (C) 2010 Henrik Rydberg <rydberg@euromail.se> | * Copyright (C) 2010 Henrik Rydberg <rydberg@euromail.se> | |||
* | * | |||
* Permission is hereby granted, free of charge, to any person obtaining a | * Permission is hereby granted, free of charge, to any person obtaining a | |||
* copy of this software and associated documentation files (the "Software" ), | * copy of this software and associated documentation files (the "Software" ), | |||
* to deal in the Software without restriction, including without limitatio n | * to deal in the Software without restriction, including without limitatio n | |||
* the rights to use, copy, modify, merge, publish, distribute, sublicense, | * the rights to use, copy, modify, merge, publish, distribute, sublicense, | |||
* and/or sell copies of the Software, and to permit persons to whom the | * and/or sell copies of the Software, and to permit persons to whom the | |||
* Software is furnished to do so, subject to the following conditions: | * Software is furnished to do so, subject to the following conditions: | |||
* | * | |||
skipping to change at line 50 | skipping to change at line 49 | |||
* | * | |||
************************************************************************** **/ | ************************************************************************** **/ | |||
#ifndef EVEMU_H | #ifndef EVEMU_H | |||
#define EVEMU_H | #define EVEMU_H | |||
#include <stdio.h> | #include <stdio.h> | |||
#include <errno.h> | #include <errno.h> | |||
#include <linux/input.h> | #include <linux/input.h> | |||
#ifdef __cplusplus | ||||
extern "C" { | ||||
#endif | ||||
#define EVEMU_VERSION 0x00010000 | #define EVEMU_VERSION 0x00010000 | |||
/** | /** | |||
* evemu_new() - allocate a new evemu device | * evemu_new() - allocate a new evemu device | |||
* @name: wanted input device name (or NULL to leave empty) | * @name: wanted input device name (or NULL to leave empty) | |||
* | * | |||
* This function allocates a new evemu device structure and | * This function allocates a new evemu device structure and | |||
* initializes all fields to zero. If name is non-null and the length | * initializes all fields to zero. If name is non-null and the length | |||
* is sane, it is copied to the device name. | * is sane, it is copied to the device name. | |||
* | * | |||
skipping to change at line 392 | skipping to change at line 395 | |||
int evemu_create(const struct evemu_device *dev, int fd); | int evemu_create(const struct evemu_device *dev, int fd); | |||
/** | /** | |||
* evemu_destroy() - destroy all created kernel devices | * evemu_destroy() - destroy all created kernel devices | |||
* @fd: file descriptor of the special kernel uinput device | * @fd: file descriptor of the special kernel uinput device | |||
* | * | |||
* Destroys all devices created using this file descriptor. | * Destroys all devices created using this file descriptor. | |||
*/ | */ | |||
void evemu_destroy(int fd); | void evemu_destroy(int fd); | |||
#ifdef __cplusplus | ||||
} | ||||
#endif | ||||
#endif | #endif | |||
End of changes. 5 change blocks. | ||||
12 lines changed or deleted | 19 lines changed or added | |||