udev_rules.h revision 726687ad48bdececed1e7e44387c50e009e28208
/*
* Copyright (C) 2003-2004 Greg Kroah-Hartman <greg@kroah.com>
* Copyright (C) 2004-2006 Kay Sievers <kay.sievers@vrfy.org>
*
* under the terms of the GNU General Public License as published by the
* Free Software Foundation version 2 of the License.
*
* 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, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
*/
#ifndef UDEV_RULES_H
#define UDEV_RULES_H
#include "udev.h"
#include "list.h"
#define PAIRS_MAX 5
#define RULESFILE_SUFFIX ".rules"
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;
};
#endif