udev_rules.h revision aa8734ffcb8a895fc8d66ff383cbcf8f4b78f562
/*
* Copyright (C) 2003-2004 Greg Kroah-Hartman <greg@kroah.com>
* Copyright (C) 2004-2008 Kay Sievers <kay.sievers@vrfy.org>
*
* 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
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* 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, see <http://www.gnu.org/licenses/>.
*/
#ifndef UDEV_RULES_H
#define UDEV_RULES_H
#include "udev.h"
#define PAIRS_MAX 5
enum key_operation {
};
struct key {
enum key_operation operation;
};
struct key_pair {
};
struct key_pairs {
int count;
};
enum import_type {
};
enum escape_type {
};
struct udev_rule {
struct key subsystems;
enum import_type import_type;
struct key goto_label;
struct key symlink_match;
enum escape_type string_escape;
unsigned int link_priority;
int event_timeout;
unsigned int partitions;
unsigned int last_rule:1,
char buf[];
};
struct udev_rules {
char *buf;
int resolve_names;
};
struct udev_rules_iter {
struct udev_rules *rules;
};
#endif